add release action

addon-dailer
lqqyt2423 3 years ago
parent e48b7bdde1
commit 436d159fb1

@ -0,0 +1,27 @@
name: Release
on:
workflow_dispatch:
inputs:
version:
description: version tag to release
required: true
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2
.gitignore vendored

@ -2,3 +2,5 @@
.env .env
/go-mitmproxy /go-mitmproxy
/dummycert /dummycert
dist/

@ -0,0 +1,33 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
# - go mod tidy
# you may remove this if you don't need go generate
# - go generate ./...
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/go-mitmproxy/main.go
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

@ -1,6 +1,6 @@
module github.com/lqqyt2423/go-mitmproxy module github.com/lqqyt2423/go-mitmproxy
go 1.16 go 1.17
require ( require (
github.com/andybalholm/brotli v1.0.4 github.com/andybalholm/brotli v1.0.4

Loading…
Cancel
Save