mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2025-06-29 22:34:17 +00:00
Create test workflow
This commit is contained in:
parent
e973c3f9af
commit
ac351e5846
46
.github/workflows/test.yml
vendored
Normal file
46
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
name: Deploy Site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ hugo ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ hugo ]
|
||||||
|
schedule:
|
||||||
|
- cron: '52 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
echo '========== Installing gulp & dependencies =========='
|
||||||
|
sudo apt-get install graphicsmagick
|
||||||
|
wget -O hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.deb
|
||||||
|
sudo dpkg -i hugo.deb
|
||||||
|
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
|
||||||
|
hugo version
|
||||||
|
- 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
|
||||||
|
- name: Deploy
|
||||||
|
if: ${{ ! github.base_ref }}
|
||||||
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
BRANCH: master
|
||||||
|
FOLDER: build
|
||||||
|
CLEAN: true
|
||||||
|
SINGLE_COMMIT: true
|
Loading…
Reference in a new issue