diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f989555..16241d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -103,26 +103,12 @@ jobs: TAG=$GITHUB_SHA fi mv ./target/$TARGET/release/$LIB_NAME ./artifacts/$TARGET_NAME - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: ${{ matrix.TARGET_NAME }} - path: | - ./artifacts - - # deploys to github releases on tag - deploy: - if: startsWith(github.ref, 'refs/tags/') - needs: build - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - path: artifacts - - name: List - run: find ./artifacts - name: Release uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: - files: ./artifacts/*.* + files: | + ./artifacts/$TARGET_NAME + prerelease: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}