Skip to content

Commit

Permalink
Use new action API commands to set environment and paths in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fiam committed Nov 29, 2020
1 parent 8a28568 commit 4269d70
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Publish release
on:
push:
tags:
- 'v*'
- "v*"
jobs:

publish:
strategy:
matrix:
Expand All @@ -21,10 +20,10 @@ jobs:

- name: Set GOPATH, PATH and ENV
run: |
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
echo "::set-env name=GO111MODULE::on"
echo "::set-env name=GOPROXY::https://proxy.golang.org"
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV
echo "GO111MODULE=on" >> $GITHUB_ENV
echo "GOPROXY=https://proxy.golang.org" >> $GITHUB_ENV
echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH
shell: bash

- name: Checkout Code
Expand Down

0 comments on commit 4269d70

Please sign in to comment.