yuzu-emu.github.io/.github/workflows/deploy.yml
liushuyu 15704775b2
Full Hugo Image Processing (#346)
* deps: update dependencies

* site: use Hugo to process thumbnails for jumbotron, boxart and screenshots

* gulpfile: use Hugo to process all the images

* deps: remove unused dependencies (image processing related)

* deps: remove xo from the dependency (unused)
2023-05-03 11:19:38 +05:30

42 lines
930 B
YAML

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