Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahobsonsayers committed Dec 29, 2024
1 parent e0fd6b1 commit 8ae47a2
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
workflow_dispatch:
inputs:
commit:
description: Commit Hash
type: string
required: true
default-bump:
description: Default Version Bump (if none found in commit messages)
type: choice
options:
- major
- minor
- patch
default: patch
required: false

jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
defaults:
run:
shell: bash

steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
ref: ${{ inputs.commit }}

- name: Create Tag
id: tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: ${{ github.event.inputs.default-bump }}
create_annotated_tag: true

0 comments on commit 8ae47a2

Please sign in to comment.