-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (56 loc) · 1.59 KB
/
release.yml
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
name: Create Release
description: Create Release and attach binaries for a new version.
on:
workflow_dispatch:
inputs:
version:
description: 'Release version Format: x.y.z-[alpha|beta|pre].n'
required: true
type: string
release_name:
description: 'Release title'
required: true
type: string
release_notes:
description: 'Release notes or changelog'
required: true
type: string
pre_release:
description: 'Is this a pre-release?'
required: false
default: false
type: boolean
jobs:
build:
uses: ./.github/workflows/build.yml
with:
version: ${{ github.event.inputs.version }}
docker-publish:
uses: ./.github/workflows/docker-publish-main.yml
with:
version: ${{ github.event.inputs.version }}
pre_release: "${{ github.event.inputs.pre_release }}"
permissions:
contents: read
packages: write
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: binaries
path: ./binaries
- name: Create GitHub Release
id: create_release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ github.event.inputs.version }}
name: ${{ github.event.inputs.release_name }}
body: ${{ github.event.inputs.release_notes }}
prerelease: ${{ github.event.inputs.pre_release }}
artifacts: ./binaries/*