Skip to content

Commit

Permalink
Update Sass GitHub action to save built files
Browse files Browse the repository at this point in the history
  • Loading branch information
romaricpascal committed Apr 8, 2024
1 parent c5668d5 commit 324724b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/sass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/upload-artifact@v4.3.1
if: ${{ !cancelled() }}
with:
name: Dart Sass v1.0.0 output
path: .tmp/all.css
if-no-files-found: ignore

dart-sass-latest:
name: Dart Sass v1 (latest)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -80,6 +88,14 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/upload-artifact@v4.3.1
if: ${{ !cancelled() }}
with:
name: Dart Sass v1 (latest) output
path: .tmp/all.css
if-no-files-found: ignore

# Node Sass v3.4.0 = LibSass v3.3.0
lib-sass:
name: LibSass v3.3.0 (deprecated)
Expand Down Expand Up @@ -110,6 +126,14 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/upload-artifact@v4.3.1
if: ${{ !cancelled() }}
with:
name: LibSass v3.3.0 (deprecated) output
path: .tmp/all.css
if-no-files-found: ignore

# Node Sass v8.x = LibSass v3 latest
lib-sass-latest:
name: LibSass v3 (latest, deprecated)
Expand Down Expand Up @@ -140,6 +164,14 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/upload-artifact@v4.3.1
if: ${{ !cancelled() }}
with:
name: LibSass v3 (latest, deprecated) output
path: .tmp/all.css
if-no-files-found: ignore

ruby-sass:
name: Ruby Sass v3.4.0 (deprecated)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -168,6 +200,14 @@ jobs:
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/upload-artifact@v4.3.1
if: ${{ !cancelled() }}
with:
name: Ruby Sass v3.4.0 (deprecated) output
path: .tmp/all.css
if-no-files-found: ignore

ruby-sass-latest:
name: Ruby Sass v3 (latest, deprecated)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -195,3 +235,11 @@ jobs:
- name: Check output
run: |
! grep "\$govuk-" .tmp/all.css
- name: Save compiled Sass
uses: actions/upload-artifact@v4.3.1
if: ${{ !cancelled() }}
with:
name: Ruby Sass v3 (latest, deprecated) output
path: .tmp/all.css
if-no-files-found: ignore

0 comments on commit 324724b

Please sign in to comment.