Skip to content

Commit

Permalink
Add run id to Zip Filename
Browse files Browse the repository at this point in the history
  • Loading branch information
sounddrill31 authored Nov 9, 2024
1 parent e89d726 commit 42bf944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:

- name: Zip folder on Linux
if: matrix.os == 'ubuntu-latest'
run: zip -r VowelCountApp-${{ matrix.os }}.zip ./output/*
run: zip -r VowelCountApp-${{ matrix.os }}-${{ github.run_id }}.zip ./output/*

- name: Zip folder on Windows
if: matrix.os == 'windows-latest'
run: powershell -Command "Compress-Archive -Path 'output/*' -DestinationPath 'VowelCountApp-${{ matrix.os }}.zip'"
run: powershell -Command "Compress-Archive -Path 'output/*' -DestinationPath 'VowelCountApp-${{ matrix.os }}-${{ github.run_id }}.zip'"

- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand All @@ -53,7 +53,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
VowelCountApp-${{ matrix.os }}.zip
VowelCountApp-${{ matrix.os }}-${{ github.run_id }}.zip
name: VowelCountApp-${{ github.run_id }}
tag_name: ${{ github.run_id }}
env:
Expand Down

0 comments on commit 42bf944

Please sign in to comment.