Merge pull request #142 from matsuyoshi30/dependabot/npm_and_yarn/min… #25
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: Deploy GitHub Pages | |
on: | |
push: | |
paths-ignore: | |
- 'images/**' | |
- 'LICENSE' | |
- 'README.md' | |
branches: | |
- master | |
- exampleSite | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: exampleSite | |
- name: Get Theme | |
run: git submodule update --init --recursive | |
- name: Update theme to Latest commit | |
run: git submodule update --remote --merge | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
- name: Build | |
run: hugo --buildDrafts --gc --verbose --minify | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public |