Skip to content

Commit

Permalink
Update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alinnert committed Apr 7, 2024
1 parent 1f7d93d commit 59a2e38
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,39 @@ on:
push:
branches:
- hugo
# tags:
# - 'v*'

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: '20'

- name: Install node_modules
run: npm ci

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.80.0'
hugo-version: '0.124.1'

- name: Build
run: hugo --minify
env:
NODE_ENV: production

- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@4
with:
ACCESS_TOKEN: ${{ secrets.GH_PAT }}
BRANCH: release
FOLDER: public
CLEAN: true

0 comments on commit 59a2e38

Please sign in to comment.