Skip to content

Commit

Permalink
CI: Switch to action-gh-release@v2 (#5)
Browse files Browse the repository at this point in the history
This commit switches from deprecated 'actions/create-release@v1' to                                                                                           
'softprops/action-gh-release@v2' for creating releases, combining the
 creation and upload steps into a single action to streamline the
workflow.

Close #3
  • Loading branch information
eleanorLYJ authored Apr 5, 2024
1 parent 6fb8f61 commit 4915ddc
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,14 @@ jobs:
pip install pygments
- name: make
run: make
- name: create Release
id: create_Release
uses: actions/create-release@v1
- name: Create and Upload Release
id: release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
./concurrency-primer.pdf
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: |
Changes in this Release
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./concurrency-primer.pdf
asset_name: concurrency-primer.pdf
asset_content_type: application/pdf

Changes in this Release

0 comments on commit 4915ddc

Please sign in to comment.