forked from betaflight/betaflight-configurator
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.41 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
# You'll need to setup the follwing environment variables:
# secrets.REPO_TOKEN - A GitHub token with permissions to push and publish releases to the repo
name: Release
on:
workflow_dispatch:
inputs:
title:
description: 'Title to assign to the release'
required: true
type: string
tag:
description: 'Tag to assign to the release source code'
required: true
type: string
generate_release_notes:
description: 'Generate release notes?'
required: true
type: boolean
jobs:
ci:
name: CI
uses: ./.github/workflows/ci.yml
with:
debug_build: false
release:
name: Release
needs: ci
runs-on: ubuntu-22.04
steps:
- name: Fetch build artifacts
uses: actions/download-artifact@v3
with:
path: release-assets/
- name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.event.inputs.title }}
tag_name: ${{ github.event.inputs.tag }}
target_commitish: ${{ GITHUB.REF_NAME }}
generate_release_notes: ${{ github.event.inputs.generate_release_notes }}
files: release-assets/Betaflight-Configurator-*/**
draft: true
prerelease: false
fail_on_unmatched_files: true