Skip to content

Commit

Permalink
Merge pull request #103 from katzenpost/new_version_docsy_hugo
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
david415 authored Dec 7, 2024
2 parents 6934da6 + 3f91afd commit eb9284d
Show file tree
Hide file tree
Showing 7,359 changed files with 363,783 additions and 979,299 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
28 changes: 17 additions & 11 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Deploy Hugo site to Pages

on:
push:
branches:
Expand All @@ -12,7 +13,7 @@ permissions:

concurrency:
group: "pages"
cancel-in-progress: false
cancel-in-progress: true

defaults:
run:
Expand All @@ -23,17 +24,16 @@ jobs:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.139.3
outputs:
page_url: ${{ steps.export_page_url.outputs.page_url }}
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ env.HUGO_VERSION }}

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- uses: actions/setup-node@v4
with:
Expand All @@ -42,7 +42,7 @@ jobs:
cache-dependency-path: package.json

- name: Install PostCSS
run: npm install -g autoprefixer postcss postcss-cli
run: npm install autoprefixer postcss postcss-cli

- name: Build with Hugo
env:
Expand All @@ -51,12 +51,18 @@ jobs:
run: |
hugo \
--gc \
--baseURL "https://katzenpost.network/"
--baseURL "https://katzenpost.network/"
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5

- name: Export Page URL
id: export_page_url
run: echo "page_url=${{ steps.pages.outputs.page_url }}" >> $GITHUB_ENV
outputs:
page_url: ${{ steps.pages.outputs.page_url }}

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -65,7 +71,7 @@ jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
url: ${{ needs.build.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
Expand Down
2 changes: 1 addition & 1 deletion node_modules/.bin/netlify

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/.bin/ntl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eb9284d

Please sign in to comment.