Skip to content

Commit

Permalink
feat: add workflow for creating a GitHub release based on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Dec 22, 2023
1 parent 0f1456f commit 535df9d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
push:
tags:
# pre-release tag
- "20??.??.?*-rc?*"
# release tags
- "20??.??.[0-9]"
- "20??.??.[0-9][0-9]"
- "20??.??.[0-9][0-9][0-9]"

jobs:
release:
runs-on: ubuntu-latest
permissions:
# https://github.com/softprops/action-gh-release#permissions
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: ${{ contains(github.ref, '-rc') }}
generate_release_notes: ${{ !contains(github.ref, '-rc') }}

0 comments on commit 535df9d

Please sign in to comment.