Skip to content

Commit 180b025

Browse files
Publish github release automatically based on tag
1 parent 2b43aa9 commit 180b025

File tree

1 file changed

+11
-0
lines changed
  • resources/io/github/abogoyavlensky/clojure_lib_template/root/.github/workflows

1 file changed

+11
-0
lines changed

resources/io/github/abogoyavlensky/clojure_lib_template/root/.github/workflows/release.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
deploy:
2323
runs-on: ubuntu-latest
2424
needs: [ tests ]
25+
permissions:
26+
contents: write
2527
steps:
2628
- uses: actions/checkout@v4
2729
- uses: ./.github/actions/cache-clojure-deps
@@ -35,3 +37,12 @@ jobs:
3537
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
3638
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
3739
run: bb deploy-release
40+
- name: Publish GitHub Release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
TAG: ${{ github.ref_name }}
44+
run: |
45+
gh release create "$TAG" \
46+
--repo="$GITHUB_REPOSITORY" \
47+
--title="${TAG}" \
48+
--generate-notes

0 commit comments

Comments
 (0)