mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-06-08 13:27:25 +00:00
CI: create a platform-agnostic script for any CI system
This commit is contained in:
parent
9ff19990d3
commit
1d9af000b1
12
.ci/build.sh
Executable file
12
.ci/build.sh
Executable file
|
@ -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'
|
13
.github/workflows/deploy.yml
vendored
13
.github/workflows/deploy.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue