diff options
| author | A Farzat <a@farzat.xyz> | 2026-03-09 10:23:48 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-03-09 10:23:48 +0300 |
| commit | 6c07799d6e884df7c18412611de8d50c97070d4d (patch) | |
| tree | ce48ce5c400bf8d60cbef148768e72dca30d390d /.github/workflows/ci.yml | |
| parent | e1d672318640cded0febdc3a6f11d35e319ecb3f (diff) | |
| download | oreilly-epub-6c07799d6e884df7c18412611de8d50c97070d4d.tar.gz oreilly-epub-6c07799d6e884df7c18412611de8d50c97070d4d.zip | |
Upgrade GitHub workflow to action-gh-release
This is because upload-release-asset was deprecated.
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18d580e..c8786ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,29 +57,9 @@ jobs: - name: Run tests run: cargo test --all - create_release: + build_and_release: needs: test if: startsWith(github.ref, 'refs/tags/v') - runs-on: ubuntu-latest - - outputs: - upload_url: ${{ steps.create.outputs.upload_url }} - - steps: - - name: Create GitHub Release - id: create - uses: actions/create-release@v1 - with: - tag_name: ${{ github.ref_name }} # 'v0.1.1' - release_name: ${{ github.ref_name }} - draft: false - prerelease: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - build_and_upload: - needs: [test, create_release] - if: startsWith(github.ref, 'refs/tags/v') runs-on: ${{ matrix.os }} strategy: @@ -126,12 +106,11 @@ jobs: Copy-Item "${{ matrix.bin_path }}" ".\${{ matrix.asset_name }}" shell: pwsh - - name: Upload to GitHub Release - uses: actions/upload-release-asset@v1 + - name: Create/Update GitHub Release and upload asset + uses: softprops/action-gh-release@v2 with: - upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_path: ./${{ matrix.asset_name }} - asset_name: ${{ matrix.asset_name }} - asset_content_type: application/octet-stream + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + files: ./${{ matrix.asset_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
