Add Content Refresh Event to Pipeline Tutorial #89
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
name: GitHub Pages | |
jobs: | |
pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
- name: Build Website with Hugo | |
run: hugo --minify | |
- name: Deploy Website to Pages branch | |
if: ${{ startsWith(github.ref, 'refs/heads/main') }} | |
uses: JamesIves/[email protected] | |
with: | |
branch: pages | |
folder: ./public |