-
Notifications
You must be signed in to change notification settings - Fork 13
44 lines (40 loc) · 1 KB
/
release-create.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
name: GitHub Release (reusable)
on:
workflow_call:
inputs:
branch:
type: string
default: main
tag:
type: string
default: dev
title:
type: string
default: Development Build
prerelease:
type: boolean
default: true
jobs:
release:
name: Create GitHub Release and upload binary
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.19
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: "${{ inputs.branch }}"
- name: Build binaries
run: go build ./cmd/openslides
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ inputs.tag }}"
prerelease: "${{ inputs.prerelease }}"
title: "${{ inputs.title }}"
files: |
openslides