@@ -45,13 +45,16 @@ jobs:
45
45
path : ${{ env.DIST_DIR }}
46
46
47
47
notarize-macos :
48
- name : notarize- ${{ matrix.artifact.name }}
48
+ name : Notarize ${{ matrix.artifact.name }}
49
49
runs-on : macos-latest
50
50
needs : create-nightly-artifacts
51
51
outputs :
52
52
checksum-darwin_amd64 : ${{ steps.re-package.outputs.checksum-darwin_amd64 }}
53
53
checksum-darwin_arm64 : ${{ steps.re-package.outputs.checksum-darwin_arm64 }}
54
54
55
+ env :
56
+ GON_CONFIG_PATH : gon.config.hcl
57
+
55
58
strategy :
56
59
matrix :
57
60
artifact :
@@ -101,7 +104,7 @@ jobs:
101
104
- name : Write gon config to file
102
105
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
103
106
run : |
104
- cat > gon.config.hcl <<EOF
107
+ cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
105
108
# See: https://github.com/mitchellh/gon#configuration-file
106
109
source = ["dist/arduino-cli_osx_${{ matrix.artifact.name }}/arduino-cli"]
107
110
bundle_id = "cc.arduino.arduino-cli"
@@ -122,15 +125,16 @@ jobs:
122
125
AC_USERNAME : ${{ secrets.AC_USERNAME }}
123
126
AC_PASSWORD : ${{ secrets.AC_PASSWORD }}
124
127
run : |
125
- gon gon.config.hcl
128
+ gon "${{ env.GON_CONFIG_PATH }}"
126
129
127
130
- name : Re-package binary and output checksum
128
131
id : re-package
129
132
working-directory : ${{ env.DIST_DIR }}
130
133
# This step performs the following:
131
134
# 1. Repackage the signed binary replaced in place by Gon (ignoring the output zip file)
132
135
# 2. Recalculate package checksum
133
- # 3. Output the new checksum to include in the nnnnnn-checksums.txt file(it cannot be done there because of parallelization)
136
+ # 3. Output the new checksum to include in the nnnnnn-checksums.txt file
137
+ # (it cannot be done there because of workflow job parallelization)
134
138
run : |
135
139
# GitHub's upload/download-artifact@v2 actions don't preserve file permissions,
136
140
# so we need to add execution permission back until the action is made to do this.
0 commit comments