Skip to content

Commit

Permalink
Merge pull request #94 from akunzai/action-gh-release
Browse files Browse the repository at this point in the history
Generate release notes on CD workflow
  • Loading branch information
akunzai authored Dec 2, 2023
2 parents f0bc451 + 7cc7877 commit e487692
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CD

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Pre-release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && (contains(github.ref,'dev') || contains(github.ref,'beta') || contains(github.ref,'alpha') || contains(github.ref,'rc'))
with:
prerelease: true
generate_release_notes: true
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && !(contains(github.ref,'dev') || contains(github.ref,'beta') || contains(github.ref,'alpha') || contains(github.ref,'rc'))
with:
generate_release_notes: true

0 comments on commit e487692

Please sign in to comment.