diff --git a/.ci/build.sh b/.ci/build.sh new file mode 100755 index 00000000..bca9014f --- /dev/null +++ b/.ci/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash -ex + +echo -e '\e[1m\e[36m========== Installing gulp & dependencies ==========\e[0m' +yarn install +# Install dependencies one-by-one to avoid race-conditions +yarn --cwd ./scripts/shared-hugo-scripts/wiki/ +yarn --cwd ./scripts/shared-hugo-scripts/compatdb/ +yarn hugo version +echo -e '\e[1m\e[36m========== Starting gulp deploy task ===============\e[0m' +yarn run build + +echo -e '\e[1m\e[32m Success! Site deployed to `build` folder.\e[0m' diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f462a7fb..7025737c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,21 +18,12 @@ jobs: with: submodules: true - name: Install dependencies - run: | - echo '========== Installing gulp & dependencies ==========' - sudo apt-get install graphicsmagick - yarn install - # Install dependencies one-by-one to avoid race-conditions - pushd ./scripts/shared-hugo-scripts/wiki/ && yarn && popd - pushd ./scripts/shared-hugo-scripts/compatdb/ && yarn && popd - yarn hugo version + run: sudo apt-get install graphicsmagick - name: Build env: GITHUB_WIKI_URL: 'https://github.com/yuzu-emu/yuzu.wiki.git' TENANT: 'yuzu' - run: | - echo '========== Starting gulp deploy task ==========' - yarn run build + run: ./.ci/build.sh - name: Deploy if: ${{ ! github.base_ref }} uses: JamesIves/github-pages-deploy-action@3.7.1