-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.19 KB
/
create-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
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
version:
description: "Version of the release, should match an existing tag name. E.g. v0.1.0"
required: true
env:
VERSION:
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# set the verion to the input. if the input is not set (triggered by tag), it will be the tag name
- run: echo "VERSION=${{ inputs.version || github.ref_name }}" >> $GITHUB_ENV
# create the release
- run: gh release create ${{ env.VERSION }} -t ${{ env.VERSION }} --verify-tag -n "See [CHANGELOG.md](https://github.com/DiscreteTom/stickdeck-rs/blob/main/CHANGELOG.md)."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# build and upload artifacts to the release.
# this is a separate workflow so we can also run it manually
- run: gh workflow run build-and-upload-release-assets.yml --field version=${{ env.VERSION }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh workflow run win-build-and-upload-release-assets.yml --field version=${{ env.VERSION }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}