Skip to content

Commit 6671699

Browse files
authored
Merge pull request #412 from arduino/gon-bye
move to fork, since `mitchellh/gon` uses deprecated tooling and is archived
2 parents 11ecc0c + e8fe9e7 commit 6671699

6 files changed

+14
-11
lines changed

workflow-templates/publish-go-nightly-task.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ This will enable everyone to participate in the project's development via beta t
6262
On a daily schedule:
6363
6464
- Build the project for all supported platforms.
65-
- Use [gon](https://github.com/mitchellh/gon) to sign and notarize the macOS builds.
65+
- Use [gon](https://github.com/Bearer/gon) to sign and notarize the macOS builds.
6666
- Upload the builds to Arduino's downloads server.
6767
6868
This will enable everyone to participate in the project's development via beta testing.

workflow-templates/publish-go-nightly-task.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ jobs:
118118
119119
- name: Install gon for code signing and app notarization
120120
run: |
121-
wget -q https://github.com/mitchellh/gon/releases/download/v0.2.3/gon_macos.zip
121+
wget -q https://github.com/Bearer/gon/releases/download/v0.0.27/gon_macos.zip
122122
unzip gon_macos.zip -d /usr/local/bin
123123
124124
- name: Write gon config to file
125125
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
126126
run: |
127127
cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
128-
# See: https://github.com/mitchellh/gon#configuration-file
128+
# See: https://github.com/Bearer/gon#configuration-file
129129
source = ["${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_osx_${{ matrix.artifact.name }}/${{ env.PROJECT_NAME }}"]
130130
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
131131
@@ -144,6 +144,7 @@ jobs:
144144
env:
145145
AC_USERNAME: ${{ secrets.AC_USERNAME }}
146146
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
147+
AC_PROVIDER: ${{ secrets.AC_PROVIDER }}
147148
run: |
148149
gon "${{ env.GON_CONFIG_PATH }}"
149150

workflow-templates/release-go-crosscompile-task.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The following [repository secrets](https://docs.github.com/actions/security-guid
4444
- `INSTALLER_CERT_MAC_P12` - the [Apple Developer ID](https://developer.apple.com/support/developer-id/) signing certificate, exported in [PKCS #12 format](https://wikipedia.org/wiki/PKCS_12) and then encoded into base64 as described [here](https://www.kencochrane.com/2020/08/01/build-and-sign-golang-binaries-for-macos-with-github-actions/#exporting-the-developer-certificate).
4545
- `INSTALLER_CERT_MAC_PASSWORD` - the password used to encrypt the Apple Developer ID signing certificate during the export process.
4646
- `AC_USERNAME` - the Apple ID username associated with the certificate.
47-
- **Note**: not likely to be a problem when using Arduino's standard credentials, but in the event the username is a member of multiple Apple Developer Program teams, you will also need to define the App Store Connect provider via [the `AC_PROVIDER` environment variable](https://github.com/mitchellh/gon#configuration-file). You can use the ID of the certificate identity (e.g., `7KT7ZWMCJT`) for this.
47+
- `AC_PROVIDER` - the App Store Connect provider via. You can use the ID of the certificate identity (e.g., `7KT7ZWMCJT`) for this.
4848
- `AC_PASSWORD` - [App-specific password](https://support.apple.com/en-us/HT204397) created for the Apple ID.
4949
- `DOWNLOADS_BUCKET` - [AWS bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingBucket.html) on the downloads server.
5050
- `AWS_ACCESS_KEY_ID` - [AWS access key ID](https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys) for the downloads server.
@@ -92,7 +92,7 @@ On every push of a tag named with a version format:
9292
On every push of a tag named with a version format:
9393
9494
- Build the project for all supported platforms.
95-
- Use [gon](https://github.com/mitchellh/gon) to sign and notarize the macOS builds.
95+
- Use [gon](https://github.com/Bearer/gon) to sign and notarize the macOS builds.
9696
- Create a [GitHub release](https://docs.github.com/repositories/releasing-projects-on-github/about-releases).
9797
- Builds and checksums are attached as release assets
9898
- A changelog generated by [`arduino/create-changelog`](https://github.com/arduino/create-changelog) from the commit history is added to the release description

workflow-templates/release-go-crosscompile-task.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ jobs:
127127
128128
- name: Install gon for code signing and app notarization
129129
run: |
130-
wget -q https://github.com/mitchellh/gon/releases/download/v0.2.3/gon_macos.zip
130+
wget -q https://github.com/Bearer/gon/releases/download/v0.0.27/gon_macos.zip
131131
unzip gon_macos.zip -d /usr/local/bin
132132
133133
- name: Write gon config to file
134134
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
135135
run: |
136136
cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
137-
# See: https://github.com/mitchellh/gon#configuration-file
137+
# See: https://github.com/Bearer/gon#configuration-file
138138
source = ["${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_osx_${{ matrix.artifact.name }}/${{ env.PROJECT_NAME }}"]
139139
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
140140
@@ -153,6 +153,7 @@ jobs:
153153
env:
154154
AC_USERNAME: ${{ secrets.AC_USERNAME }}
155155
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
156+
AC_PROVIDER: ${{ secrets.AC_PROVIDER }}
156157
run: |
157158
gon "${{ env.GON_CONFIG_PATH }}"
158159

workflow-templates/release-go-task.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following [repository secrets](https://docs.github.com/actions/security-guid
4343
- `INSTALLER_CERT_MAC_P12` - the [Apple Developer ID](https://developer.apple.com/support/developer-id/) signing certificate, exported in [PKCS #12 format](https://wikipedia.org/wiki/PKCS_12) and then encoded into base64 as described [here](https://www.kencochrane.com/2020/08/01/build-and-sign-golang-binaries-for-macos-with-github-actions/#exporting-the-developer-certificate).
4444
- `INSTALLER_CERT_MAC_PASSWORD` - the password used to encrypt the Apple Developer ID signing certificate during the export process.
4545
- `AC_USERNAME` - the Apple ID username associated with the certificate.
46-
- **Note**: not likely to be a problem when using Arduino's standard credentials, but in the event the username is a member of multiple Apple Developer Program teams, you will also need to define the App Store Connect provider via [the `AC_PROVIDER` environment variable](https://github.com/mitchellh/gon#configuration-file). You can use the ID of the certificate identity (e.g., `7KT7ZWMCJT`) for this.
46+
- `AC_PROVIDER` - the App Store Connect provider via. You can use the ID of the certificate identity (e.g., `7KT7ZWMCJT`) for this.
4747
- `AC_PASSWORD` - [App-specific password](https://support.apple.com/en-us/HT204397) created for the Apple ID.
4848
- `DOWNLOADS_BUCKET` - [AWS bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingBucket.html) on the downloads server.
4949
- `AWS_ACCESS_KEY_ID` - [AWS access key ID](https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys) for the downloads server.
@@ -91,7 +91,7 @@ On every push of a tag named with a version format:
9191
On every push of a tag named with a version format:
9292
9393
- Build the project for all supported platforms.
94-
- Use [gon](https://github.com/mitchellh/gon) to sign and notarize the macOS builds.
94+
- Use [gon](https://github.com/Bearer/gon) to sign and notarize the macOS builds.
9595
- Create a [GitHub release](https://docs.github.com/repositories/releasing-projects-on-github/about-releases).
9696
- Builds and checksums are attached as release assets
9797
- A changelog generated by [`arduino/create-changelog`](https://github.com/arduino/create-changelog) from the commit history is added to the release description

workflow-templates/release-go-task.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ jobs:
123123
124124
- name: Install gon for code signing and app notarization
125125
run: |
126-
wget -q https://github.com/mitchellh/gon/releases/download/v0.2.3/gon_macos.zip
126+
wget -q https://github.com/Bearer/gon/releases/download/v0.0.27/gon_macos.zip
127127
unzip gon_macos.zip -d /usr/local/bin
128128
129129
- name: Write gon config to file
130130
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
131131
run: |
132132
cat > "${{ env.GON_CONFIG_PATH }}" <<EOF
133-
# See: https://github.com/mitchellh/gon#configuration-file
133+
# See: https://github.com/Bearer/gon#configuration-file
134134
source = ["${{ env.DIST_DIR }}/${{ env.PROJECT_NAME }}_osx_${{ matrix.artifact.name }}/${{ env.PROJECT_NAME }}"]
135135
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}"
136136
@@ -149,6 +149,7 @@ jobs:
149149
env:
150150
AC_USERNAME: ${{ secrets.AC_USERNAME }}
151151
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
152+
AC_PROVIDER: ${{ secrets.AC_PROVIDER }}
152153
run: |
153154
gon "${{ env.GON_CONFIG_PATH }}"
154155

0 commit comments

Comments
 (0)