Update node.js.yml

This commit is contained in:
Florian Bouillon 2021-04-26 12:29:35 +02:00 committed by GitHub
parent 64849c3f97
commit be61e4c747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,7 @@ jobs:
run: yarn && yarn start && TCGDEX_COMPILER_LANG=fr yarn start
- name: Commit Changes
id: commit
working-directory: ./dist
if: ${{ (github.event_name == 'push') || github.event_name == 'repository_dispatch' }}
continue-on-error: true
@ -60,7 +61,7 @@ jobs:
- name: Push changes
uses: ad-m/github-push-action@master
if: ${{ success() && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }}
if: ${{ steps.commit.outcome === 'success' && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }}
with:
github_token: ${{ secrets.PUSH_TOKEN }}
directory: ./dist
@ -68,7 +69,7 @@ jobs:
- name: Upload
run: yarn upload
if: ${{ success() && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }}
if: ${{ steps.commit.outcome === 'success' && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }}
env:
UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}