Skip to content

release v1.2.1

release v1.2.1 #15

Workflow file for this run

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@a74c6b72af54cfa997e81df42d94703d6313a2d0
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: CHANGELOG.md
files: |
sshified-${{ env.release_version }}-linux-amd64.tar.bz2