mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
36 lines
706 B
YAML
36 lines
706 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- '**'
|
|
tags:
|
|
- 'v*.*.*'
|
|
# to be used by fork patch-releases ^^
|
|
- 'v*.*.*-*'
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
|
|
- name: Prepare
|
|
id: prepare
|
|
run: |
|
|
TAG=${GITHUB_REF#refs/tags/}
|
|
echo ::set-output name=tag_name::${TAG}
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v3
|
|
with:
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|