aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml33
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 }}