added release
This commit is contained in:
32
.gitea/workflows/release.yaml
Normal file
32
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Release
|
||||
|
||||
on: [release]
|
||||
|
||||
env:
|
||||
VERSION: v0.0.0
|
||||
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ '1.23.4']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Go ${{ matrix.go-version }}
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Install dependencies
|
||||
run: go get .
|
||||
- name: Build
|
||||
run: go build -o ./build/ssh-hub
|
||||
- name: Test
|
||||
run: go test
|
||||
- name: Create and publish
|
||||
uses: actions/release-action@main
|
||||
with:
|
||||
files: |-
|
||||
build/**
|
||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||
Reference in New Issue
Block a user