Skip to content

Commit

Permalink
Add create release-version
Browse files Browse the repository at this point in the history
  • Loading branch information
wwahammy committed Jun 2, 2024
1 parent d6b68ec commit 8ee7d65
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Create a new release"
on:
workflow_dispatch:
inputs:
kind:
type: choice
options:
- "patch"
- "minor"
- "major"
default: "patch"
description: The type of version to create

permissions:
contents: write

jobs:
tweak-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: enricoGiga/[email protected]
env:
SEMVER_LEVEL: patch
with:
repo_token: ${{github.token}}
id: version-checker

- run: |
gh release create v${{ steps.version-checker.outputs.next_version }} --generate-notes
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 8ee7d65

Please sign in to comment.