Skip to content

Commit

Permalink
Add release hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmin-marginean committed Apr 27, 2024
1 parent 1bb8f1a commit f6f8868
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: cosmin-marginean
4 changes: 4 additions & 0 deletions .github/github-release-from-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
draft: false
generateReleaseNotes: false
prerelease: false
reactions: []
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish release

on:
push:
tags:
- "v*"

jobs:
publish:
name: Publish release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish release
uses: ghalactic/github-release-from-tag@v4
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ publish:

publish-local:
./gradlew publish -x initializeSonatypeStagingRepository -x publishMavenJavaPublicationToSonatypeRepository

release:
@echo $(invirtVersion)
git tag "v$(invirtVersion)" -m "Release v$(invirtVersion)"
git push --tags --force
@echo Finished building version $(invirtVersion)

0 comments on commit f6f8868

Please sign in to comment.