Skip to content

Commit 143ede3

Browse files
committed
Create release
1 parent 9939a57 commit 143ede3

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,24 @@ jobs:
2121
- name: Build Handout
2222
run: |
2323
make handout
24-
24+
- name: Create Release
25+
if: startsWith(github.event.ref, 'refs/tags')
26+
id: create_release
27+
uses: actions/[email protected]
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
tag_name: ${{ github.ref }}
32+
release_name: Release ${{ github.ref }}
33+
draft: false
34+
prerelease: false
35+
- name: Upload Slides
36+
if: startsWith(github.event.ref, 'refs/tags')
37+
id: upload-release-asset
38+
uses: actions/[email protected]
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
with:
42+
upload_url: ${{ steps.create_release.outputs.upload_url }}
43+
asset_path: GitWorkshop_Slides_*.pdf
44+
asset_name: Slides

0 commit comments

Comments
 (0)