Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheidudko committed Dec 29, 2023
1 parent 0fc2463 commit a94b274
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/deploy-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,26 +98,26 @@ jobs:
- name: Deploy to firebase
run: firebase deploy -m "Autodeploy from GitHUB ($GITHUB_ACTOR)" --only hosting:$FIREBASE_SITE_ALIAS
working-directory: ${{ github.workspace }}/firebase/hosting/${{ env.SITE_DIR }}
- name: The job has failed - archive result
if: ${{ failure() }}
run: |
if [[ -d ${{ github.workspace }}/firebase ]]; then
tar -czf firebase.tar.gz firebase;
fi
working-directory: ${{ github.workspace }}
- name: The job has failed - archive npm logs
if: ${{ failure() }}
run: |
if [[ -d /home/runner/.npm/_logs ]]; then
tar -czf ${{ github.workspace }}/npm-logs.tar.gz /home/runner/.npm/_logs;
fi
working-directory: /
- name: The job has failed - upload artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.FIREBASE_PROJECT }}-site-${{ env.FIREBASE_SITE_ALIAS }}-debug
path: |
${{ github.workspace }}/firebase.tar.gz
${{ github.workspace }}/npm-logs.tar.gz
retention-days: 1
# - name: The job has failed - archive result
# if: ${{ failure() }}
# run: |
# if [[ -d ${{ github.workspace }}/firebase ]]; then
# tar -czf firebase.tar.gz firebase;
# fi
# working-directory: ${{ github.workspace }}
# - name: The job has failed - archive npm logs
# if: ${{ failure() }}
# run: |
# if [[ -d /home/runner/.npm/_logs ]]; then
# tar -czf ${{ github.workspace }}/npm-logs.tar.gz /home/runner/.npm/_logs;
# fi
# working-directory: /
# - name: The job has failed - upload artifacts
# if: ${{ failure() }}
# uses: actions/upload-artifact@v4
# with:
# name: ${{ env.FIREBASE_PROJECT }}-site-${{ env.FIREBASE_SITE_ALIAS }}-debug
# path: |
# ${{ github.workspace }}/firebase.tar.gz
# ${{ github.workspace }}/npm-logs.tar.gz
# retention-days: 1
46 changes: 23 additions & 23 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,26 +95,26 @@ jobs:
- name: Deploy to firebase
run: firebase deploy -m "Autodeploy from GitHUB ($GITHUB_ACTOR)" --only hosting:$FIREBASE_SITE_ALIAS
working-directory: ${{ github.workspace }}/firebase/hosting/${{ env.SITE_DIR }}
- name: The job has failed - archive result
if: ${{ failure() }}
run: |
if [[ -d ${{ github.workspace }}/firebase ]]; then
tar -czf firebase.tar.gz firebase;
fi
working-directory: ${{ github.workspace }}
- name: The job has failed - archive npm logs
if: ${{ failure() }}
run: |
if [[ -d /home/runner/.npm/_logs ]]; then
tar -czf ${{ github.workspace }}/npm-logs.tar.gz /home/runner/.npm/_logs;
fi
working-directory: /
- name: The job has failed - upload artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.FIREBASE_PROJECT }}-site-${{ env.FIREBASE_SITE_ALIAS }}-debug
path: |
${{ github.workspace }}/firebase.tar.gz
${{ github.workspace }}/npm-logs.tar.gz
retention-days: 1
# - name: The job has failed - archive result
# if: ${{ failure() }}
# run: |
# if [[ -d ${{ github.workspace }}/firebase ]]; then
# tar -czf firebase.tar.gz firebase;
# fi
# working-directory: ${{ github.workspace }}
# - name: The job has failed - archive npm logs
# if: ${{ failure() }}
# run: |
# if [[ -d /home/runner/.npm/_logs ]]; then
# tar -czf ${{ github.workspace }}/npm-logs.tar.gz /home/runner/.npm/_logs;
# fi
# working-directory: /
# - name: The job has failed - upload artifacts
# if: ${{ failure() }}
# uses: actions/upload-artifact@v4
# with:
# name: ${{ env.FIREBASE_PROJECT }}-site-${{ env.FIREBASE_SITE_ALIAS }}-debug
# path: |
# ${{ github.workspace }}/firebase.tar.gz
# ${{ github.workspace }}/npm-logs.tar.gz
# retention-days: 1

0 comments on commit a94b274

Please sign in to comment.