Skip to content

Commit

Permalink
update deployment workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
cabbetlong committed Oct 9, 2024
1 parent 538631b commit 31b5171
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
hugo-version: '0.129.0'
extended: true

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.22.1'

- name: Install Dart Sass
run: sudo snap install dart-sass

Expand All @@ -35,9 +40,16 @@ jobs:
with:
node-version: '20'

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: hugo --baseURL https://${REPO_OWNER}.github.io/${REPO_NAME} --minify

- run: hugo
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }} # <-- specify same branch as above here
Expand Down

0 comments on commit 31b5171

Please sign in to comment.