Use config_release.go from actions secrets var

This commit is contained in:
Jerry Jacobs 2024-07-26 07:39:53 +02:00
parent fe7dcd9333
commit c322d01d29
2 changed files with 8 additions and 2 deletions

View File

@ -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 }}

View File

@ -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