Skip to content

Commit

Permalink
Enable GH pages publishing again
Browse files Browse the repository at this point in the history
  • Loading branch information
major committed Mar 13, 2024
1 parent 8e84d2f commit 984000e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bunnycdn.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Deploy to BunnyCDN

on:
push:
branches: ["main"]
# push:
# branches: ["main"]
workflow_dispatch:

concurrency:
Expand Down
28 changes: 11 additions & 17 deletions .github/workflows/github_pages.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Deploy to GitHub Pages

on:
# Runs on pushes targeting the default branch
# push:
# branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
push:
branches: ["main"]
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand All @@ -29,30 +26,27 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4

- name: Setup Hugo
run: |
LATEST_HUGO_VERSION=$(grep github.com/gohugoio/hugo go.mod | awk '{print $NF}' | sed 's/^v//')
HUGO_DOWNLOAD_URL="https://github.com/gohugoio/hugo/releases/download/v${LATEST_HUGO_VERSION}/hugo_extended_${LATEST_HUGO_VERSION}_linux-amd64.tar.gz"
curl -sL --retry 5 "$HUGO_DOWNLOAD_URL" | tar xvzf - hugo
./hugo version
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--minify \
--baseURL https://major.io
run: ./hugo --minify --gc --baseURL https://major.io

- name: Fix RSS feed
run: |
Expand Down

0 comments on commit 984000e

Please sign in to comment.