-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (29 loc) · 943 Bytes
/
release-tag.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
name: Release Tag
on:
push:
tags: v*
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Variables
run: echo "release_version=${GITHUB_REF_NAME/v/}" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build
run: make build
- name: Test
run: go test -v ./...
- name: Package Binary
run: rsync sshified README.md LICENSE sshified-${{ env.release_version }}-linux-amd64 && tar cvjf sshified-${{ env.release_version }}-linux-amd64.tar.bz2 sshified-${{ env.release_version }}-linux-amd64
- name: Release
uses: softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: CHANGELOG.md
files: |
sshified-${{ env.release_version }}-linux-amd64.tar.bz2