From 3a00e5a9ba55ea6f683515696b4d18324ccd7687 Mon Sep 17 00:00:00 2001 From: loyalsoldier Date: Tue, 10 Dec 2019 19:12:25 +0800 Subject: [PATCH] fixed GOPATH --- .github/workflows/main.yml | 16 ++++++++++++++-- generate-rules-dat.sh | 3 +-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 66b1630cfe..e66f7ccb34 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,19 @@ jobs: id: go - name: Check out code into the Go module directory - uses: actions/checkout@master + uses: actions/checkout@v1 + with: + fetch-depth: 1 + + - name: Debug + run: | + pwd + echo ${HOME} + echo ${GITHUB_WORKSPACE} + echo ${GOPATH} + echo ${GOROOT} + env: + GOPATH: /home/runner/work/v2ray-rules-dat/go # - name: Set GOPATH # run: | @@ -47,7 +59,7 @@ jobs: - name: Upload dat files to release uses: svenstaro/upload-release-action@v1-release with: - file: $GITHUB_WORKSPACE/v2ray/${{ matrix.artifact_name }} + file: $GOPATH/v2ray/${{ matrix.artifact_name }} asset_name: ${{ matrix.asset_name }} tag: latest overwrite: true diff --git a/generate-rules-dat.sh b/generate-rules-dat.sh index d34c7f7631..c739670456 100644 --- a/generate-rules-dat.sh +++ b/generate-rules-dat.sh @@ -5,8 +5,7 @@ set -e GREEN='\033[0;32m' NC='\033[0m' # no color -# GOPATH=$(mktemp -d) -# export GOPATH=$GOPATH +export GOPATH=$GOPATH V2RAY_FOLDER="$GOPATH/v2ray" mkdir -p $V2RAY_FOLDER