Build and upload preview for PR 51 #144
Workflow file for this run
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: 'Build Pull Request' | |
run-name: Build and upload preview for PR ${{ github.event.pull_request.number }} | |
on: | |
pull_request: | |
types: [synchronize, opened] | |
jobs: | |
build: | |
name: Build and upload site | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: "0.119.0" | |
- name: Build | |
run: hugo -F | |
- uses: matyrobbrt/cloudflare-pr-previews/upload@v1 | |
name: Upload website | |
with: | |
build-dir: ./public/ |