36 lines
790 B
YAML
36 lines
790 B
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
|
|
- name: Build
|
|
env:
|
|
TENANT: 'citra'
|
|
GITHUB_WIKI_URL: 'https://github.com/citra-emu/citra.wiki.git'
|
|
run: ./.ci/build.sh
|
|
- 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
|