citra-emu
/
citra-web
Archived
1
0
Fork 0
This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
citra-web/.github/workflows/deploy.yml

45 lines
1.2 KiB
YAML

name: Deploy Site
on:
push:
branches: [ hugo ]
pull_request:
branches: [ hugo ]
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/wiki/ && yarn && popd
pushd ./scripts/compatdb/ && yarn && popd
hugo version
- name: Build
env:
TENANT: 'citra'
GITHUB_WIKI_URL: 'https://github.com/citra-emu/citra.wiki.git'
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