Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Checking out GROOVE code to get version number
  • Loading branch information
rensink authored Mar 30, 2024
1 parent aad00f4 commit 61228ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,28 @@ on:

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

steps:
- name: Checkout rule systems
uses: actions/checkout@v4

- name: Check out GROOVE code for version number
uses: actions/checkout@v4
with:
path: 'code'

- name: Create zips
run: ./zip-all.sh

- name: Retrieve GROOVE version from file
run: echo "VERSION=`cat 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"
draft: false
prerelease: true
tag: release-${{ env.VERSION }}
tag: release${{ env.VERSION }}

0 comments on commit 61228ef

Please sign in to comment.