Update puth related #1874
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Site | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- .github | |
- README.md | |
- LICENSE | |
jobs: | |
build-mtf-dot-wiki: | |
runs-on: ubuntu-22.04 | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: latest | |
extended: true | |
- name: Generated Cache | |
uses: actions/cache@v3 | |
with: | |
path: resources/_gen | |
key: ${{ runner.os }}-generated-${{ hashFiles('**') }} | |
restore-keys: ${{ runner.os }}-generated | |
- name: Build | |
run: hugo --minify --enableGitInfo | |
- name: Upload artifact | |
if: github.ref == 'refs/heads/master' | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: public | |
deploy-mtf-dot-wiki: | |
needs: build-mtf-dot-wiki | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |