Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nl-utwente-groove/samples
Browse files Browse the repository at this point in the history
  • Loading branch information
rensink committed Apr 8, 2024
2 parents 524134e + f855a2f commit 7f4cdfb
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,31 @@ on:

jobs:
build:
name: Zip and deploy release
runs-on: ubuntu-latest

steps:
- name: Checkout rule systems
- 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: |
ls
cat zip-all.sh
./zip-all.sh
run: cd samples; ./zip-all.sh

- name: Retrieve GROOVE version from file
run: echo "VERSION=$(<src/main/resources/nl/utwente/groove/resource/version/GROOVE_VERSION) | tr '.' '_'" >> $GITHUB_ENV
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: "code/release/target/*.zip"
artifacts: "samples/*.zip"
draft: false
prerelease: true
prerelease: false
tag: release-${{ env.VERSION }}

0 comments on commit 7f4cdfb

Please sign in to comment.