Skip to content

Commit

Permalink
♻️ exclusions logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Roms1383 committed Sep 2, 2024
1 parent 0a67f40 commit 5496b8f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
CARGO_TERM_COLOR: always
IS_DRAFT: ${{ startsWith(github.ref_name, 'beta') || startsWith(github.ref_name, 'alpha') }}
IS_PRERELEASE: ${{ startsWith(github.ref_name, 'rc') }}
IS_RELEASE: ${{ startsWith(github.ref_name, 'v') }}
CARGO_NET_GIT_FETCH_WITH_CLI: true

jobs:
Expand All @@ -36,22 +37,13 @@ jobs:
- name: Bundle mod files
run: just ci 'Audioware-windows-latest-${{ github.ref_name }}'
- name: Zip files
if: ${{ fromJSON(env.IS_DRAFT) || fromJSON(env.IS_PRERELEASE) }}
uses: thedoctor0/[email protected]
with:
type: zip
filename: Audioware-windows-latest-${{ github.ref_name }}.zip
directory: Audioware-windows-latest-${{ github.ref_name }}
path: .
- name: Zip files
if: ${{ !fromJSON(env.IS_DRAFT) && !fromJSON(env.IS_PRERELEASE) }}
uses: thedoctor0/[email protected]
with:
type: zip
filename: Audioware-windows-latest-${{ github.ref_name }}.zip
directory: Audioware-windows-latest-${{ github.ref_name }}
path: .
exclusions: 'Debug*.reds'
exclusions: ${{ fromJSON(env.IS_RELEASE) && 'Debug*.reds' || '' }}
- name: Generate zip checksum
run: Get-FileHash -Path "Audioware-windows-latest-${{ github.ref_name }}\Audioware-windows-latest-${{ github.ref_name }}.zip" -Algorithm SHA256 | Select-Object -ExpandProperty Hash > "checksum.txt"
- name: Upload artifact
Expand Down

0 comments on commit 5496b8f

Please sign in to comment.