Skip to content

Commit

Permalink
Altered artifact attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshoffmann committed Jan 31, 2024
1 parent 624d101 commit 28409d9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,12 @@ jobs:
make clean
make build
- name: Rename LipidSpace Build output to include RELEASE_VERSION
run: |
mv Build/LipidSpace Build/LipidSpace-${{ env.RELEASE_VERSION }}-${{ env.OS }}
- name: Attach Binaries to Build
uses: actions/upload-artifact@v4
# action zips automatically
with:
name: "LipidSpace-${{ env.RELEASE_VERSION }}-${{ env.OS }}"
path: "Build/LipidSpace-${{ env.RELEASE_VERSION }}-${{ env.OS }}"
path: "Build/LipidSpace"

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down Expand Up @@ -132,16 +128,16 @@ jobs:
copy .\examples\ThreeStudies.xlsx "Build/LipidSpace/examples"
copy LICENSE* "Build/LipidSpace"
copy .\release\LipidSpace.exe "Build/LipidSpace"
powershell Copy-Item "libraries/Qt/bin/win64"\* -Destination "Build/LipidSpace-${{ env.RELEASE_VERSION }}-${{ env.OS }}" -Recurse -force
powershell Compress-Archive "Build/LipidSpace-${{ env.RELEASE_VERSION }}-${{ env.OS }}" "Build/LipidSpace-${{ env.RELEASE_VERSION }}-${{ env.OS }}.zip" -force
powershell Copy-Item "libraries/Qt/bin/win64"\* -Destination "Build/LipidSpace" -Recurse -force
powershell Compress-Archive "Build/LipidSpace" "Build/LipidSpace-${{ env.RELEASE_VERSION }}-${{ env.OS }}.zip" -force
shell: cmd

- name: Attach Binaries to Build
uses: actions/upload-artifact@v4
# action zips automatically
with:
name: "LipidSpace-${{ env.RELEASE_VERSION }}-${{ env.OS }}"
path: "Build/LipidSpace-${{ env.RELEASE_VERSION }}-${{ env.OS }}"
path: "Build/LipidSpace"

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit 28409d9

Please sign in to comment.