Skip to content

Commit edecef4

Browse files
committed
use globally bash (for win compatibility) and move comment
1 parent 6ba1c2f commit edecef4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
ext: ".exe"
2121
- operating-system: macos-10.15
2222

23+
defaults:
24+
run:
25+
shell: bash
26+
2327
runs-on: ${{ matrix.operating-system }}
2428
env:
2529
TARGET: "/CreateAgent/"
@@ -31,7 +35,6 @@ jobs:
3135
run: |
3236
echo "TAG_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
3337
echo $(go env GOPATH)/bin >> $GITHUB_PATH
34-
shell: bash
3538
3639
- name: Identify Prerelease
3740
# This is a workaround while waiting for create-release action to implement auto pre-release based on tag
@@ -65,7 +68,6 @@ jobs:
6568
go get github.com/golangci/govet
6669
go get golang.org/x/lint/golint
6770
go get -u github.com/sanbornm/go-selfupdate/...
68-
shell: bash
6971
7072
- name: Install Taskfile
7173
uses: arduino/actions/setup-taskfile@master
@@ -114,8 +116,9 @@ jobs:
114116
run: task build
115117
if: matrix.operating-system == 'macos-10.15'
116118

119+
# this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
117120
- name: Create autoupdate files
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
121+
run: go-selfupdate arduino-create-agent${{ matrix.ext }} ${TAG_VERSION}
119122
# if: steps.prerelease.outputs.IS_PRE != 'true'
120123

121124
- name: Upload autoupdate files to Arduino downloads servers

0 commit comments

Comments
 (0)