2020-11-05 08:53:06 +01:00
|
|
|
name: Deploy Site
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-11-05 09:26:06 +01:00
|
|
|
branches: [ hugo ]
|
2020-11-05 08:53:06 +01:00
|
|
|
pull_request:
|
2020-11-05 09:26:06 +01:00
|
|
|
branches: [ hugo ]
|
2020-11-05 08:53:06 +01:00
|
|
|
|
|
|
|
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'
|
2021-05-12 01:47:09 +02:00
|
|
|
GITHUB_WIKI_URL: 'https://github.com/citra-emu/citra.wiki.git'
|
2021-06-08 09:40:42 +02:00
|
|
|
run: ./.ci/build.sh
|
2020-11-05 08:53:06 +01:00
|
|
|
- name: Deploy
|
2020-11-05 09:26:06 +01:00
|
|
|
if: ${{ ! github.base_ref }}
|
2020-11-05 08:53:06 +01:00
|
|
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BRANCH: master
|
|
|
|
FOLDER: build
|
|
|
|
CLEAN: true
|
|
|
|
SINGLE_COMMIT: true
|