-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (40 loc) · 1 KB
/
build-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
name: Build & release
on:
#schedule:
# - cron: '0 4,16 * * *'
workflow_dispatch:
inputs:
tag:
description: "Enter the version string (e.g. 'v4.0.0alpha'):"
required: true
type: string
prerelease:
description: "Check if pre-release"
required: true
type: boolean
jobs:
build:
uses: ./.github/workflows/build-branch.yml
with:
branch: main
release:
runs-on: ubuntu-latest
needs: build
environment: build
steps:
- name: release
uses: SimWinSports/[email protected]
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_branch: main/${{ inputs.tag }}
prerelease: ${{ inputs.prerelease }}
tag: ${{ inputs.tag }}
- name: upload
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ inputs.tag }}
files: ${{ needs.build.outputs.bin_path }}