2020-11-05 07:53:06 +00:00
|
|
|
name: Deploy Site
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-11-05 08:26:06 +00:00
|
|
|
branches: [ hugo ]
|
2020-11-05 07:53:06 +00:00
|
|
|
pull_request:
|
2020-11-05 08:26:06 +00:00
|
|
|
branches: [ hugo ]
|
2023-05-08 19:34:31 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '35 0 */5 * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
2020-11-05 07:53:06 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-05-09 22:44:33 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-05 07:53:06 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
echo '========== Installing gulp & dependencies =========='
|
2023-07-18 20:40:04 +00:00
|
|
|
sudo apt-get update && sudo apt-get install graphicsmagick
|
2020-11-05 07:53:06 +00:00
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
TENANT: 'citra'
|
2021-05-11 23:47:09 +00:00
|
|
|
GITHUB_WIKI_URL: 'https://github.com/citra-emu/citra.wiki.git'
|
2021-06-08 07:40:42 +00:00
|
|
|
run: ./.ci/build.sh
|
2020-11-05 07:53:06 +00:00
|
|
|
- name: Deploy
|
2020-11-05 08:26:06 +00:00
|
|
|
if: ${{ ! github.base_ref }}
|
2023-05-09 22:45:31 +00:00
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
2020-11-05 07:53:06 +00:00
|
|
|
with:
|
2023-05-09 22:44:33 +00:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
branch: master
|
|
|
|
folder: build
|
|
|
|
clean: true
|
|
|
|
single-commit: true
|
|
|
|
force: true
|