mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
Update node.js.yml
This commit is contained in:
parent
64849c3f97
commit
be61e4c747
5
.github/workflows/node.js.yml
vendored
5
.github/workflows/node.js.yml
vendored
@ -49,6 +49,7 @@ jobs:
|
|||||||
run: yarn && yarn start && TCGDEX_COMPILER_LANG=fr yarn start
|
run: yarn && yarn start && TCGDEX_COMPILER_LANG=fr yarn start
|
||||||
|
|
||||||
- name: Commit Changes
|
- name: Commit Changes
|
||||||
|
id: commit
|
||||||
working-directory: ./dist
|
working-directory: ./dist
|
||||||
if: ${{ (github.event_name == 'push') || github.event_name == 'repository_dispatch' }}
|
if: ${{ (github.event_name == 'push') || github.event_name == 'repository_dispatch' }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
@ -60,7 +61,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
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:
|
with:
|
||||||
github_token: ${{ secrets.PUSH_TOKEN }}
|
github_token: ${{ secrets.PUSH_TOKEN }}
|
||||||
directory: ./dist
|
directory: ./dist
|
||||||
@ -68,7 +69,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
run: yarn 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:
|
env:
|
||||||
UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
|
UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
|
||||||
UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}
|
UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user