Skip to content

Commit 6ba1c2f

Browse files
committed
fix go-selfupdate not being found
1 parent 6475b3d commit 6ba1c2f

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
@@ -113,7 +115,7 @@ jobs:
113115
if: matrix.operating-system == 'macos-10.15'
114116

115117
- name: Create autoupdate files
116-
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
118+
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
117119
# if: steps.prerelease.outputs.IS_PRE != 'true'
118120

119121
- name: Upload autoupdate files to Arduino downloads servers

0 commit comments

Comments
 (0)