Skip to content

Commit

Permalink
Add some other workflow things
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch committed Nov 26, 2024
1 parent 1dae77f commit dc204f4
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,24 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: recursive
fetch-depth: 0

- run: cd docs && npm ci && hugo --minify --config /config/production/hugo.toml
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4

- name: Install dependencies
run: npm ci"

- name: Build production website
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: cd docs && npm run build -- --baseURL "${{ steps.pages.outputs.base_url }}/"

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
Expand Down

0 comments on commit dc204f4

Please sign in to comment.