From f2833469dc5bac08136c530880f29f03d280ad6f Mon Sep 17 00:00:00 2001 From: Herwin Bozet Date: Tue, 26 Nov 2024 21:02:28 +0100 Subject: [PATCH] Fixed artifact name, testing author name condition Update sass-compile.yml --- .github/workflows/sass-compile.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sass-compile.yml b/.github/workflows/sass-compile.yml index 0f4c746..2c66692 100644 --- a/.github/workflows/sass-compile.yml +++ b/.github/workflows/sass-compile.yml @@ -38,11 +38,21 @@ jobs: sass "../../scss/debugger.scss" -q --no-source-map > "debugger.css" sass "../../scss/debugger.scss" -q --no-source-map --style compressed > "debugger.min.css" - - name: Upload build artifacts - uses: actions/upload-artifact@v3 - #if: ${{ github.ref == 'refs/heads/master' }} + - name: Upload `.css` build artifact + uses: actions/upload-artifact@v4 + if: ${{ github.actor == 'aziascreations' }} with: - name: QueryLogsAMQP-Nightly + name: nibblepoker.min.css + path: "./htdocs/css/nibblepoker.css" + if-no-files-found: error + retention-days: 90 + compression-level: 9 + + - name: Upload `.min.css` build artifact + uses: actions/upload-artifact@v4 + if: ${{ github.actor == 'not_aziascreations' }} + with: + name: nibblepoker.min.css path: "./htdocs/css/nibblepoker.min.css" if-no-files-found: error retention-days: 90