fixed GOPATH

This commit is contained in:
loyalsoldier 2019-12-10 19:12:25 +08:00
parent 24e3297c2e
commit 3a00e5a9ba
2 changed files with 15 additions and 4 deletions

View File

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

View File

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