Skip to content

Commit 2edb18a

Browse files
committed
Add workflow to publish a zip containing the proto files
1 parent e6ec6c9 commit 2edb18a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Package and Publish Protobuf Files
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
package-protobuf:
10+
name: Create and Upload Protobuf ZIP to GitHub Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
actions: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install zip utility
20+
run: sudo apt-get install zip
21+
22+
- name: Package Protobuf Files
23+
run: |
24+
zip -r protobuf-files-${{ github.event.release.tag_name }}.zip ./org/polypheny/prism
25+
26+
- name: Upload ZIP to GitHub Release
27+
uses: actions/upload-release-asset@v2
28+
with:
29+
upload_url: ${{ github.event.release.upload_url }}
30+
asset_path: ./protobuf-files-${{ github.event.release.tag_name }}.zip
31+
asset_name: protobuf-files-${{ github.event.release.tag_name }}.zip
32+
asset_content_type: application/zip

0 commit comments

Comments
 (0)