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
2b94dac887
commit
64849c3f97
11
.github/workflows/node.js.yml
vendored
11
.github/workflows/node.js.yml
vendored
@ -4,12 +4,14 @@
|
|||||||
name: Compile TCGdex
|
name: Compile TCGdex
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# Run on Webhook
|
||||||
|
repository_dispatch:
|
||||||
|
# Run when a push is made on master
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
# Run on any pull request
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
|
||||||
repository_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -49,6 +51,7 @@ jobs:
|
|||||||
- name: Commit Changes
|
- name: Commit Changes
|
||||||
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
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "bot@tcgdex.net"
|
git config --local user.email "bot@tcgdex.net"
|
||||||
git config --local user.name "TCGdex [bot]"
|
git config --local user.name "TCGdex [bot]"
|
||||||
@ -57,7 +60,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
if: ${{ (github.event_name == 'push') || github.event_name == 'repository_dispatch' }}
|
if: ${{ 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
|
||||||
@ -65,7 +68,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
run: yarn upload
|
run: yarn upload
|
||||||
if: ${{ (github.event_name == 'push') || github.event_name == 'repository_dispatch' }}
|
if: ${{ 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