Skip to content

Commit 844790e

Browse files
committed
fix go-selfupdate not being found
1 parent 6a4e9d0 commit 844790e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ jobs:
2727
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2828

2929
steps:
30-
- name: Set version
31-
run: echo "TAG_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
30+
- name: Set env vars
31+
run: |
32+
echo "TAG_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
33+
echo $(go env GOPATH)/bin >> $GITHUB_PATH
3234
shell: bash
3335

3436
- name: Identify Prerelease
@@ -114,7 +116,7 @@ jobs:
114116
if: matrix.operating-system == 'macos-10.15'
115117

116118
- name: Create autoupdate files
117-
run: ${GOPATH}/bin/go-selfupdate arduino-create-agent${{ matrix.ext }} ${TAG_VERSION} # this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
119+
run: go-selfupdate arduino-create-agent${{ matrix.ext }} ${TAG_VERSION} # this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
118120
# if: steps.prerelease.outputs.IS_PRE != 'true'
119121

120122
- name: Upload autoupdate files to Arduino downloads servers

0 commit comments

Comments
 (0)