This commit is contained in:
parent
593cb41fe4
commit
41962fe732
18
.gitea/workflows/release.yml
Normal file
18
.gitea/workflows/release.yml
Normal file
@ -0,0 +1,18 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: [ubuntu-latest]
|
||||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
with: { go-version: 1.20 }
|
||||
- run: go install github.com/go-task/task/v3/cmd/task@latest
|
||||
- run: apt update && apt-get install zip
|
||||
- uses: actions/checkout@v3
|
||||
- run: task deps
|
||||
- run: git reset --hard
|
||||
- run: GORELEASER_FORCE_TOKEN=gitea GITEA_TOKEN=${{ secrets.GE_TOKEN }} task release:prod
|
17
.gitignore
vendored
Normal file
17
.gitignore
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
bin/
|
||||
vendor
|
||||
ssh-benchmark
|
||||
benchmark.zip
|
||||
---
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
!.vscode/*.code-snippets
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Built Visual Studio Code Extensions
|
||||
*.vsix
|
38
.goreleaser.yml
Normal file
38
.goreleaser.yml
Normal file
@ -0,0 +1,38 @@
|
||||
# Goreleaser configuration
|
||||
# for building binaries and packages for distributions and releasing on github
|
||||
gitea_urls:
|
||||
api: https://git.treesir.pub/api/v1
|
||||
download: https://git.treesir.pub
|
||||
# set to true if you use a self-signed certificate
|
||||
skip_tls_verify: false
|
||||
|
||||
dist: bin
|
||||
|
||||
builds:
|
||||
- binary: ssh-benchmark
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
main: main.go
|
||||
goos:
|
||||
- darwin
|
||||
- linux
|
||||
- freebsd
|
||||
goarch:
|
||||
- amd64
|
||||
ignore:
|
||||
- goos: darwin
|
||||
goarch: 386
|
||||
|
||||
archives:
|
||||
-
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
files:
|
||||
- LICENSE
|
||||
- config.json.template
|
||||
|
||||
# release:
|
||||
# # Do not auto publish release
|
||||
# draft: true
|
||||
# name_template: "{{.Tag}}"
|
Loading…
x
Reference in New Issue
Block a user