From a17c1e317109fa8e90bc085d3d7bf05aa24adc99 Mon Sep 17 00:00:00 2001 From: Avior Date: Tue, 20 Apr 2021 15:50:13 +0200 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b093d9a..9baf500 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -23,26 +23,27 @@ jobs: with: node-version: '14.x' - - name: Pull submodules - run: | - cd db && git pull - cd ../dist && git pull - cd ../ + - name: Pull Distribution + working-directory: ./db + run: git pull - name: Compile Database - run: cd db && yarn && yarn compile && cd ../ + working-directory: ./db + run: git pull && yarn && yarn compile - name: Build + working-directory: ./ run: yarn && yarn start && TCGDEX_COMPILER_LANG=fr yarn start - name: Upload run: yarn upload - name: Commit Changes + working-directory: ./dist 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 ../ + git commit -m "Updated Database" -a env: UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }} UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}