Skip to content

Commit 9632daf

Browse files
ci: added gh release command to CI to create github releases on tag push
1 parent 5b01028 commit 9632daf

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727

2828
permissions:
2929
packages: write
30-
contents: read
30+
contents: write
3131

3232
jobs:
3333
build-images:
@@ -129,3 +129,13 @@ jobs:
129129
ghcr.io/projectasap/asap-query-engine:latest
130130
cache-from: type=registry,ref=ghcr.io/projectasap/asap-query-engine:buildcache
131131
cache-to: ${{ (startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch') && 'type=registry,ref=ghcr.io/projectasap/asap-query-engine:buildcache,mode=max' || '' }}
132+
133+
create-release:
134+
needs: build-images
135+
if: startsWith(github.ref, 'refs/tags/')
136+
runs-on: ubuntu-latest
137+
steps:
138+
- name: Create GitHub Release
139+
run: gh release create ${{ github.ref_name }} --generate-notes --title "${{ github.ref_name }}"
140+
env:
141+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)