Update node.js.yml

This commit is contained in:
Florian Bouillon 2021-04-20 15:50:13 +02:00 committed by GitHub
parent 3d561b400d
commit a17c1e3171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,26 +23,27 @@ jobs:
with: with:
node-version: '14.x' node-version: '14.x'
- name: Pull submodules - name: Pull Distribution
run: | working-directory: ./db
cd db && git pull run: git pull
cd ../dist && git pull
cd ../
- name: Compile Database - name: Compile Database
run: cd db && yarn && yarn compile && cd ../ working-directory: ./db
run: git pull && yarn && yarn compile
- name: Build - name: Build
working-directory: ./
run: yarn && yarn start && TCGDEX_COMPILER_LANG=fr yarn start run: yarn && yarn start && TCGDEX_COMPILER_LANG=fr yarn start
- name: Upload - name: Upload
run: yarn upload run: yarn upload
- name: Commit Changes - name: Commit Changes
working-directory: ./dist
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]"
cd dist && git commit -m "Updated Database" -a && cd ../ git commit -m "Updated Database" -a
env: env:
UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }} UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }} UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}