forked from yuzu-emu/yuzu-emu.github.io
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (37 loc) · 930 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deploy Site
on:
push:
branches: [ hugo ]
pull_request:
branches: [ hugo ]
schedule:
- cron: '25 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- 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/yuzu-emu/yuzu.wiki.git'
TENANT: 'yuzu'
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