mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
39 lines
765 B
YAML
39 lines
765 B
YAML
name: Publish Go Releases
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'docs/**'
|
|
- 'docker/**'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.x
|
|
|
|
- name: Build
|
|
run: make -j releases
|
|
|
|
- name: Upload Releases
|
|
uses: softprops/action-gh-release@v1
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
files: build/*
|
|
draft: true
|
|
prerelease: false
|