Skip to content

Commit

Permalink
CI: Fix artifacts folder structure and name
Browse files Browse the repository at this point in the history
It will now contain `bin/` as topmost folder, and both release and debug
artifacts are uploaded (separately for now).

Would be nice to change the release process eventually to include all
platforms and targets in a single zip.
  • Loading branch information
akien-mga committed Mar 29, 2023
1 parent 5a46539 commit ced3a0b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,22 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: |
${{ github.workspace }}/bin/*
path: 'bin/'

- name: Archive Release
if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: thedoctor0/zip-release@0.7.1
with:
type: 'zip'
filename: '${{ env.LIBNAME }}.${{ matrix.platform }}.${{ matrix.arch }}.zip'
path: '${{ github.workspace }}/bin/'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
filename: '${{ env.LIBNAME }}.${{ matrix.platform }}.${{ matrix.target }}.${{ matrix.arch }}.zip'
path: 'bin/'

- name: Create and upload asset
if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "${{ env.LIBNAME }}.${{ matrix.platform }}.${{ matrix.arch }}.zip"
artifacts: "${{ env.LIBNAME }}.${{ matrix.platform }}.${{ matrix.target }}.${{ matrix.arch }}.zip"
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ced3a0b

Please sign in to comment.