Skip to content

Merge pull request #142 from matsuyoshi30/dependabot/npm_and_yarn/min… #25

Merge pull request #142 from matsuyoshi30/dependabot/npm_and_yarn/min…

Merge pull request #142 from matsuyoshi30/dependabot/npm_and_yarn/min… #25

Workflow file for this run

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