Skip to content

Commit

Permalink
fix: release workflow (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT authored Jan 10, 2024
1 parent 11e88c6 commit f85a078
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
workflow_dispatch:
inputs:
tag:
description: Tag to release
required: true

jobs:
# TODO: tests and docs are not aligned when called from workflow_dispatch :/
pre-commit:
uses: ./.github/workflows/step_pre-commit.yaml
tests:
Expand All @@ -26,8 +31,12 @@ jobs:
needs: [ tests, docs ]
name: Create release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.tag }}
- uses: softprops/action-gh-release@v1
with:
name: CMakeExtraUtils ${{ github.ref_name }}
Expand Down

0 comments on commit f85a078

Please sign in to comment.