Skip to content

Commit

Permalink
fix(ci): upload artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
ToaHartor committed Jul 11, 2024
1 parent d0ac5c3 commit 8936cf3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,35 @@ jobs:
dotnet publish -c Release -r "${{ matrix.arch }}" -o "$release_name" --self-contained false -p:PublishTrimmed=false
if [ "${{ matrix.arch }}" == "win-x64" ]; then
archive_type="zip"
# Pack for standalone version
7z a -tzip "${release_name_standalone}.zip" "./${release_name_standalone}/*"
# Pack for Framework dependant version
7z a -tzip "${release_name}.zip" "./${release_name}/*"
else
archive_type="tar.gz"
tar czvf "${release_name_standalone}.tar.gz" "$release_name_standalone"
tar czvf "${release_name}.tar.gz" "$release_name"
fi
rm -r "$release_name_standalone"
rm -r "$release_name"
echo "zip_standalone=${release_name_standalone}.${archive_type}" >> $GITHUB_ENV
echo "zip_native=${release_name}.${archive_type}" >> $GITHUB_ENV
- name: 'Upload Artifact'
- name: 'Upload standalone build'
uses: actions/upload-artifact@v4
with:
name: ${{ env.zip_standalone }}
path: ${{ env.zip_standalone }}
retention-days: 7

- name: 'Upload native build'
uses: actions/upload-artifact@v4
with:
name: my-artifact
path: |
GICutscenes-*.zip
GICutscenes-*.tar.gz
name: ${{ env.zip_native }}
path: ${{ env.zip_native }}
retention-days: 7

0 comments on commit 8936cf3

Please sign in to comment.