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 ]
|
2023-05-08 21:34:31 +02:00
|
|
|
schedule:
|
|
|
|
- cron: '35 0 */5 * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
2020-11-05 08:53:06 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-05-10 00:44:33 +02:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-05 08:53:06 +01:00
|
|
|
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 }}
|
2023-05-10 00:45:31 +02:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
2020-11-05 08:53:06 +01:00
|
|
|
with:
|
2023-05-10 00:44:33 +02:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
branch: master
|
|
|
|
folder: build
|
|
|
|
clean: true
|
|
|
|
single-commit: true
|
|
|
|
force: true
|