Skip to content

Commit 4915ddc

Browse files
authored
CI: Switch to action-gh-release@v2 (#5)
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
1 parent 6fb8f61 commit 4915ddc

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,14 @@ jobs:
1919
pip install pygments
2020
- name: make
2121
run: make
22-
- name: create Release
23-
id: create_Release
24-
uses: actions/create-release@v1
22+
- name: Create and Upload Release
23+
id: release
24+
uses: softprops/action-gh-release@v2
2525
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
with:
28+
files: |
29+
./concurrency-primer.pdf
2830
tag_name: ${{ github.ref_name }}
29-
release_name: Release ${{ github.ref_name }}
3031
body: |
31-
Changes in this Release
32-
- name: Upload Release Asset
33-
id: upload-release-asset
34-
uses: actions/upload-release-asset@v1
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
with:
38-
upload_url: ${{ steps.create_release.outputs.upload_url }}
39-
asset_path: ./concurrency-primer.pdf
40-
asset_name: concurrency-primer.pdf
41-
asset_content_type: application/pdf
42-
32+
Changes in this Release

0 commit comments

Comments
 (0)