File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 20
20
ext : " .exe"
21
21
- operating-system : macos-10.15
22
22
23
+ defaults :
24
+ run :
25
+ shell : bash
26
+
23
27
runs-on : ${{ matrix.operating-system }}
24
28
env :
25
29
TARGET : " /CreateAgent/"
31
35
run : |
32
36
echo "TAG_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
33
37
echo $(go env GOPATH)/bin >> $GITHUB_PATH
34
- shell : bash
35
38
36
39
- name : Identify Prerelease
37
40
# This is a workaround while waiting for create-release action to implement auto pre-release based on tag
40
43
curl -s https://github.com/fsaintjacques/semver-tool/archive/3.1.0.zip -o /tmp/3.1.0.zip
41
44
unzip -p /tmp/3.1.0.zip semver-tool-3.1.0/src/semver >/tmp/semver && chmod +x /tmp/semver
42
45
if [[ $(/tmp/semver get prerel ${GITHUB_REF/refs\/tags\//}) ]]; then echo "::set-output name=IS_PRE::true"; fi
43
- shell : bash
44
46
45
47
- name : Disable EOL conversions
46
48
run : git config --global core.autocrlf false
66
68
go get github.com/golangci/govet
67
69
go get golang.org/x/lint/golint
68
70
go get -u github.com/sanbornm/go-selfupdate/...
69
- shell : bash
70
71
71
72
- name : Install Taskfile
72
73
uses : arduino/actions/setup-taskfile@master
@@ -117,12 +118,7 @@ jobs:
117
118
118
119
# this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
119
120
- name : Create autoupdate files
120
- run : |
121
- ls
122
- go-selfupdate arduino-create-agent${{ matrix.ext }} ${TAG_VERSION}
123
- echo %errorlevel%
124
- ls
125
- shell : bash
121
+ run : go-selfupdate arduino-create-agent${{ matrix.ext }} ${TAG_VERSION}
126
122
# if: steps.prerelease.outputs.IS_PRE != 'true'
127
123
128
124
- name : Upload autoupdate files to Arduino downloads servers
You can’t perform that action at this time.
0 commit comments