Skip to content

Commit fe90933

Browse files
committed
add release action
1 parent f19f083 commit fe90933

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release-zip.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow releases a zip containing only whats necessary for a course
2+
# participant.
3+
#
4+
# TODO: the action just updates the asset when the release already exists. This
5+
# Could be made nicer, since now the release commit points to a different state
6+
# than what is in the asset zip
7+
name: Release or update course zip
8+
on:
9+
push:
10+
branches:
11+
- release
12+
13+
jobs:
14+
release-course-zip:
15+
name: Release course zip
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write # needed to make releases
19+
20+
steps:
21+
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Zip course
26+
run: zip -r python-gis-training.zip environment.yml kurssimateriaali
27+
28+
- name: Make release
29+
uses: softprops/action-gh-release@v2
30+
with:
31+
tag_name: default-release
32+
body: A placeholder release for hosting the latest zip. Built from release branch.
33+
files: python-gis-training.zip

0 commit comments

Comments
 (0)