-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.05 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: release
run-name: Release
on:
push:
tags:
- "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:
needs: [ pre-commit ]
uses: ./.github/workflows/step_test.yaml
permissions:
contents: read
checks: write
pull-requests: write
docs:
needs: [ pre-commit ]
uses: ./.github/workflows/step_docs.yaml
release:
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 }}
draft: true
prerelease: ${{ contains(github.ref, 'rc') }}
generate_release_notes: true