diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e01331b..d5b3bd7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/Makefile b/Makefile index be8081a..c2ff136 100644 --- a/Makefile +++ b/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