mirror of
https://github.com/xor-gate/go-socks5-ssh-proxy
synced 2026-03-23 06:16:35 +01:00
Use config_release.go from actions secrets var
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -35,4 +35,6 @@ jobs:
|
||||
run: |
|
||||
ls ${{ github.workspace }}
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
- run: make release
|
||||
- run: make ci
|
||||
env:
|
||||
CONFIG_RELEASE_GO_FILE: ${{ secrets.CONFIG_RELEASE_GO_FILE }}
|
||||
|
||||
6
Makefile
6
Makefile
@ -2,9 +2,13 @@ SOURCES=Makefile main.go main_release.go main_debug.go config.go config_release.
|
||||
GARBLE_BIN = $(shell go env GOPATH)/bin/garble
|
||||
GO_ENV_VARS = CGO_ENABLED=0
|
||||
|
||||
all: socks5-ssh-proxy
|
||||
|
||||
ci: secrets release
|
||||
secrets:
|
||||
cat $(CONFIG_RELEASE_GO_FILE) > config_release.go
|
||||
release: socks5-ssh-proxy.release socks5-ssh-proxy.exe
|
||||
|
||||
all: socks5-ssh-proxy socks5-ssh-proxy.release socks5-ssh-proxy.exe
|
||||
test: socks5-ssh-proxy
|
||||
cp socks5-ssh-proxy ~/.ssh; cd ~/.ssh; ~/.ssh/socks5-ssh-proxy
|
||||
test-release: socks5-ssh-proxy.release
|
||||
|
||||
Reference in New Issue
Block a user