Skip to content

Commit 23638d0

Browse files
committed
Add release job
1 parent 28d8fba commit 23638d0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,18 @@ jobs:
161161
- name: Push image
162162
if: needs.version.outputs.pushable == 'true'
163163
run: docker push --all-tags ghcr.io/gaggle/elixir_script
164+
165+
release:
166+
needs: [ version, push ]
167+
if: needs.version.outputs.pushable == 'true'
168+
runs-on: ubuntu-latest
169+
permissions:
170+
contents: write
171+
steps:
172+
- uses: actions/checkout@v3
173+
- uses: softprops/action-gh-release@v1
174+
with:
175+
generate_release_notes: true
176+
prerelease: true
177+
tag_name: v${{ needs.version.outputs.semver }}
178+
token: ${{ secrets.PAT }} # using our own PAT so other workflows run

0 commit comments

Comments
 (0)