-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.29 KB
/
release.yaml
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
name: Create release and tag
on:
push:
branches:
- main
jobs:
create-tag:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- { runner: ubuntu-latest, os: linux, arch: amd64, go-version: 1.22 }
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: get tag version
id: get_tag_version
run: |
cat version.txt
echo "version=$(cat version.txt)" >> $GITHUB_OUTPUT
- name: Download stamusctl
uses: actions/download-artifact@v2
with:
name: stamusctl-${{matrix.os}}-${{matrix.arch}}
- name: Download stamusd
uses: actions/download-artifact@v2
with:
name: stamusd-${{matrix.os}}-${{matrix.arch}}
- name: Release snapshot
id: release-snapshot
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.get_tag_version.outputs.version }}
draft: false
prerelease: false
files: |
dist/stamusctl
dist/stamusd