Merge pull request #26 from lucasew/dep-update #111
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Autorelease | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
jobs: | |
build-binary: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Create relase | |
if: github.ref_type == 'tag' | |
id: release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
draft: false | |
tag_name: ${{ github.ref_name }} | |
release_name: Release ${{ github.ref_name }} | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v4.1.0 | |
with: | |
go-version: '1.22' | |
- run: mkdir build -p && ls && pwd | |
- run: GOOS=windows GOARCH=amd64 go build -o build/ts-proxyd-windows-amd64.exe ./cmd/ts-proxyd | |
- run: go build -o build/ts-proxyd-linux-amd64 ./cmd/ts-proxyd | |
- uses: svenstaro/upload-release-action@v2 | |
if: github.ref_type == 'tag' | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: build/* | |
tag: ${{ github.ref_name }} | |
overwrite: true | |
file_glob: true | |