-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 947 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: GROOVE samples release
on:
push:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
name: Zip and deploy release
runs-on: ubuntu-latest
steps:
- name: Checkout sample rule systems
uses: actions/checkout@v4
with:
path: 'samples'
- name: Check out GROOVE code for version number
uses: actions/checkout@v4
with:
repository: 'nl-utwente-groove/code'
path: 'code'
- name: Create zips
run: cd samples; ./zip-all.sh
- name: Retrieve GROOVE version from file
run: echo "VERSION=`cat code/src/main/resources/nl/utwente/groove/resource/version/GROOVE_VERSION | tr '.' '_'`" >> $GITHUB_ENV
- name: Deploy release
uses: ncipollo/[email protected]
with:
artifacts: "samples/*.zip"
draft: false
prerelease: true
tag: release-${{ env.VERSION }}