mirror of
https://github.com/suyu-emu/wiki.git
synced 2026-09-21 14:43:16 -07:00
46 lines
991 B
YAML
46 lines
991 B
YAML
name: Deploy Site
|
|
|
|
on:
|
|
push:
|
|
branches: [ hugo ]
|
|
pull_request:
|
|
branches: [ hugo ]
|
|
schedule:
|
|
- cron: '30 0 * * *'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: false
|
|
- name: Cache Rendered Data
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ./site/resources
|
|
key: ${{ runner.os }}-rendered-${{ github.sha }}
|
|
restore-keys: ${{ runner.os }}-rendered-
|
|
- name: Install dependencies
|
|
run: sudo apt-get update
|
|
- name: Build
|
|
env:
|
|
GITHUB_WIKI_URL: 'https://github.com/suyu-wiki/suyu-games-wiki.git'
|
|
TENANT: 'suyu'
|
|
run: ./.ci/build.sh
|
|
- name: Deploy
|
|
if: ${{ ! github.base_ref }}
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: master
|
|
folder: build
|
|
clean: true
|
|
single-commit: true
|