-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 992 Bytes
/
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
name: release
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to be released'
required: true
prerelease:
description: "Is the release a prerelease? (true / false)"
default: 'false'
required: false
env:
PROJECT_NAME: ${{ github.event.repository.name }}
jobs:
build:
name: Build and Push
uses: ./.github/workflows/build.yml
with:
tag: ${{ github.event.inputs.tag }}
secrets: inherit
github-release:
name: Create GitHub Release
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Create Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ github.event.inputs.tag }}
tag_name: ${{ github.event.inputs.tag }}
prerelease: ${{ github.event.inputs.prerelease }}
generate_release_notes: true
target_commitish: ${{ github.sha }}