Skip to content

Commit

Permalink
Add dart sass to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
domw95 committed Jul 28, 2024
1 parent efd3807 commit 5e21121
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docs-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.110.0'
hugo-version: "0.110.0"
extended: true

- uses: dw-labs-org/dart-sass-gha@v1

- name: Build
working-directory: docs
run: hugo --minify
Expand All @@ -26,5 +28,5 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
commit_message: '[skip ci] Deploy:'
commit_message: "[skip ci] Deploy:"
publish_dir: docs/public
6 changes: 4 additions & 2 deletions .github/workflows/fresh-to-vercel-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.110.0'
hugo-version: "0.110.0"
extended: true

- uses: dw-labs-org/dart-sass-gha@v1

- name: Build with Hugo on PR
working-directory: exampleSite
run: |
Expand All @@ -38,4 +40,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: alias-domain
path: alias-domain/
path: alias-domain/
12 changes: 7 additions & 5 deletions .github/workflows/fresh-to-vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.110.0'
hugo-version: "0.110.0"
extended: true

- uses: dw-labs-org/dart-sass-gha@v1

- name: Build with Hugo on master
working-directory: exampleSite
run: |
Expand All @@ -28,9 +30,9 @@ jobs:
- name: Deploy to Vercel on master
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
vercel-project-name: hugo-fresh
vercel-args: '--prod'
working-directory: ./exampleSite/public
vercel-args: "--prod"
working-directory: ./exampleSite/public
6 changes: 4 additions & 2 deletions .github/workflows/htmltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:
push:
branches:
- master
- master
pull_request:

jobs:
Expand All @@ -27,6 +27,8 @@ jobs:
hugo-version: "latest"
extended: true

- uses: dw-labs-org/dart-sass-gha@v1

- run: hugo --destination $GITHUB_WORKSPACE/exampleSite/public --themesDir ../../ --theme hugo-fresh
working-directory: exampleSite

Expand All @@ -44,4 +46,4 @@ jobs:
with:
name: htmltest-report
path: tmp/.htmltest/htmltest.log
retention-days: 7 # default is 90 days
retention-days: 7 # default is 90 days

0 comments on commit 5e21121

Please sign in to comment.