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
de9a96789c
commit
6ebad2fc0e
36
.github/workflows/node.js.yml
vendored
36
.github/workflows/node.js.yml
vendored
@ -13,30 +13,40 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Compile & Upload
|
|
||||||
|
- name: Setup NodeJS
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: '14.x'
|
||||||
- run: git pull --recurse-submodules=yes
|
|
||||||
- run: yarn db:compile
|
- name: Pull submodules
|
||||||
- run: TCGDEX_COMPILER_LANG=en yarn start
|
run: git pull --recurse-submodules=yes
|
||||||
- run: TCGDEX_COMPILER_LANG=fr yarn start
|
|
||||||
- run: yarn upload
|
- name: Compile Database
|
||||||
- run: git config --local user.email "bot@tcgdex.net"
|
run: yarn db:compile
|
||||||
- run: git config --local user.name "TCGdex [bot]"
|
|
||||||
- run: cd dist && git commit -m "Updated Database" -a && cd ../
|
- name: Build
|
||||||
|
run: yarn start && TCGDEX_COMPILER_LANG=fr yarn start
|
||||||
|
|
||||||
|
- name: Upload
|
||||||
|
run: yarn upload
|
||||||
|
|
||||||
|
- name: Commit Changes
|
||||||
|
run: |
|
||||||
|
git config --local user.email "bot@tcgdex.net"
|
||||||
|
git config --local user.name "TCGdex [bot]"
|
||||||
|
cd dist && git commit -m "Updated Database" -a && cd ../
|
||||||
env:
|
env:
|
||||||
UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
|
UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
|
||||||
UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}
|
UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}
|
||||||
UPLOAD_USERNAME: ${{ secrets.UPLOAD_USERNAME }}
|
UPLOAD_USERNAME: ${{ secrets.UPLOAD_USERNAME }}
|
||||||
UPLOAD_PASSWORD: ${{ secrets.UPLOAD_PASSWORD }}
|
UPLOAD_PASSWORD: ${{ secrets.UPLOAD_PASSWORD }}
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
- uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
- with:
|
with:
|
||||||
github_token: ${{ secrets.UPLOAD_TOKEN }}
|
github_token: ${{ secrets.UPLOAD_TOKEN }}
|
||||||
directory: './dist'
|
directory: './dist'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user