-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (58 loc) · 1.52 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release
on:
workflow_dispatch:
inputs:
commit:
description: Full 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
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.tag.outputs.new_tag }}
tag_name: ${{ steps.tag.outputs.new_tag }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
tag: ${{ steps.tag.outputs.new_tag }}
build-push:
name: Build and Push
needs: [create-release]
uses: ./.github/workflows/build_push.yaml
with:
commit: ${{ github.sha }}
tags: latest,${{ needs.create-release.outputs.tag }}
secrets: inherit