Skip to content

Commit

Permalink
ci: add release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Sep 16, 2024
1 parent cb1120d commit 8ffad19
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: draft-release

on:
workflow_dispatch:
inputs:
version-tag:
description: |
Semantic version tag for next release.
If not provided, it will be determined based on conventional commit history.
Example: v2.5.11
required: false
type: string
default: ""

jobs:
draft-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # required to include tags
- uses: CCBR/actions/[email protected]
with:
github-token: ${{ github.token }}
version-tag: ${{ github.event.inputs.version-tag }}
17 changes: 17 additions & 0 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: post-release

on:
release:
types:
- published

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: CCBR/actions/[email protected]
with:
github-token: ${{ github.token }}

0 comments on commit 8ffad19

Please sign in to comment.