diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 2219e26..b6035b7 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -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 }}