Skip to content

Commit

Permalink
ci: autorelease patch version per commit
Browse files Browse the repository at this point in the history
  • Loading branch information
headblockhead committed Oct 12, 2024
1 parent 5caad1f commit 5d08a02
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Draft release
on:
push:
branches:
- master
workflow_dispatch:
inputs:
bump:
Expand Down Expand Up @@ -45,6 +48,11 @@ jobs:
env:
VERSION: ${{github.event.after}}
steps:
- name: Set bump amount
id: bump
run: |
BUMP_INPUT=${{ github.event.inputs.bump }}
echo "::set-output bump=value::${BUMP_INPUT:-"patch"}"
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: '0'
Expand All @@ -55,7 +63,7 @@ jobs:
id: tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: ${{ github.event.inputs.bump }}
DEFAULT_BUMP: ${{ steps.bump.outputs.bump }}
WITH_V: true
- run: gh release create ${{steps.tag.outputs.new_tag}} --generate-notes libsquirrel.a
env:
Expand Down

0 comments on commit 5d08a02

Please sign in to comment.