Skip to content

update github workflows #2

update github workflows

update github workflows #2

Workflow file for this run

# .github/workflows/preview.yml
name: Deploy PR previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
permissions:
contents: write
issues: write
pull-requests: write
jobs:
deploy-preview:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.91.2'
# extended: true
- name: Build website
run: hugo
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./public/