From 58545acbb70ca6d5c9fbac58c9c390ec60de59d9 Mon Sep 17 00:00:00 2001 From: esheyw Date: Mon, 22 Jan 2024 20:29:02 -0800 Subject: [PATCH] Update main.yaml update release action for sass, attempt 1 --- .github/workflows/main.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 143ee92..665955f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -9,7 +9,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - + + - name: Sass Build + # You may pin to the exact commit or the version. + # uses: gha-utilities/sass-build@a890a939b8c2b0778ea706fb091da0f1c6f38f92 + uses: gha-utilities/sass-build@v0.5.1 + with: + # Relative path(s) to SASS or SCSS file, eg. _scss/main.scss + source: styles/main.scss + # Path(s) compiled CSS should be saved, eg. ~/workspace_sass/assets/css/main.css + destination: styles/main.css + # Substitute the Manifest and Download URLs in the module.json - name: Substitute Manifest and Download Links For Versioned Ones id: sub_manifest_link_version @@ -23,7 +33,7 @@ jobs: download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip # Create a zip file with all files required by the module to add to the release - - run: zip -r ./module.zip module.json LICENSE styles/ scripts/ templates/ lang/ + - run: zip -r ./module.zip module.json LICENSE styles/*.css styles/*.map scripts/ templates/ lang/ # Create a release for this specific version - name: Update Release with Files @@ -37,4 +47,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} artifacts: './module.json, ./module.zip' tag: ${{ github.event.release.tag_name }} - body: ${{ github.event.release.body }} \ No newline at end of file + body: ${{ github.event.release.body }}