Skip to content

Commit

Permalink
Add release-tag workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paultristanwagner committed Nov 15, 2024
1 parent 26e56aa commit 094fe14
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build

on:
workflow_call:
push:
branches:
- main
Expand All @@ -21,6 +22,8 @@ jobs:
with:
distribution: 'zulu'
java-version: '18'
cache: gradle


- name: Build with Gradle
run: ./gradlew jar
29 changes: 29 additions & 0 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Tag

on:
push:
tags:
- v*

permissions:
contents: write

jobs:
build:
uses: ./.github/workflows/build.yml
release-tag:
name: Release Tag
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build
uses: ./.github/workflows/build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" build/libs/model-checking-1.0-SNAPSHOT.jar \
--repo="$GITHUB_REPOSITORY" \
--title="v${tag#v}"

0 comments on commit 094fe14

Please sign in to comment.