Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix #162

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy Hugo site to Pages
on:
push:
branches:
- main
- docs
pull_request:
branches:
Expand All @@ -26,7 +27,6 @@ defaults:

jobs:
build:
if: github.event.pull_request.merged == true || github.ref == 'refs/heads/docs'
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.108.0
Expand All @@ -37,10 +37,13 @@ jobs:
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass Embedded
run: sudo snap install dart-sass-embedded
- name: Checkout
- name: Checkout docs branch
uses: actions/checkout@v4
with:
ref: docs
submodules: recursive
- name: Fetch main branch
run: git fetch origin main:main
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
Expand Down Expand Up @@ -111,7 +114,7 @@ jobs:
fi
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/upload-artifact@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifact_name: site
name: htwoo-site
path: ./public
Loading