Skip to content

fix: re-enable dev branch and dispatch #6

fix: re-enable dev branch and dispatch

fix: re-enable dev branch and dispatch #6

Workflow file for this run

name: Deploy Hugo site to Pages
on:
push:
branches: ["main", "astromechza-patch-1"]
paths-ignore:
- README.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install yarn
run: npm install -g yarn
- name: Install Node.js dependencies
run: yarn install
- name: Check
run: yarn run dprint check
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Hugo
run: |
yarn run hugo \
--minify \
--themesDir ../.. \
--baseURL "${{ steps.pages.outputs.base_url }}"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4