Skip to content

add vless hy1,hy2 support for tgchannel. #52

add vless hy1,hy2 support for tgchannel.

add vless hy1,hy2 support for tgchannel. #52

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: go get
run: go get
- name: Cache go module
uses: actions/cache@v3.3.1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies and run test
run: |
go test ./...
- name: gen go-bindata
if: startsWith(github.ref, 'refs/tags/')
run: |
go get -u github.com/go-bindata/go-bindata/...
go-bindata -o internal/bindata/geoip/geoip.go -pkg bingeoip assets/GeoLite2-City.mmdb assets/flags.json
- name: Build
if: startsWith(github.ref, 'refs/tags/')
env:
NAME: proxypool
BINDIR: bin
run: make -j releases
- name: Upload Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
files: bin/*
draft: true
prerelease: true
- uses: actions/upload-artifact@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: build
path: bin