Skip to content

Commit

Permalink
Merge pull request #104 from katzenpost/new_version_docsy_hugo
Browse files Browse the repository at this point in the history
New version docsy hugo
  • Loading branch information
david415 authored Dec 7, 2024
2 parents eb9284d + ae96f19 commit 3c1c422
Show file tree
Hide file tree
Showing 7,359 changed files with 973,049 additions and 357,535 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
30 changes: 11 additions & 19 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Deploy Hugo site to Pages

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

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

defaults:
run:
Expand All @@ -24,25 +23,24 @@ 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
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ env.HUGO_VERSION }}
- 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: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package.json

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

- name: Build with Hugo
env:
Expand All @@ -51,18 +49,12 @@ 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 @@ -71,7 +63,7 @@ jobs:
deploy:
environment:
name: github-pages
url: ${{ needs.build.outputs.page_url }}
url: ${{ steps.deployment.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 3c1c422

Please sign in to comment.