Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/check-general-formatting-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@ jobs:
- name: Install editorconfig-checker
run: |
cd "${{ env.EC_INSTALL_PATH }}"

tar \
--extract \
--file="${{ steps.download.outputs.name }}"

# Give the binary a standard name
mv \
"${{ env.EC_INSTALL_PATH }}/bin/ec-linux-amd64" \
"${{ env.EC_INSTALL_PATH }}/bin/ec"

# Add installation to PATH:
# See: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
echo "${{ env.EC_INSTALL_PATH }}/bin" >>"$GITHUB_PATH"
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release-go-crosscompile-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
run: |
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
echo "BUILD_FOLDER=${{ env.PROJECT_NAME }}_osx_${{ matrix.build.folder-suffix }}" >>"$GITHUB_ENV"

TAG="${GITHUB_REF/refs\/tags\//}"
echo "PACKAGE_FILENAME=${{ env.PROJECT_NAME }}_${TAG}_${{ matrix.build.package-suffix }}" >>$GITHUB_ENV

Expand All @@ -125,21 +126,26 @@ jobs:
KEYCHAIN_PASSWORD: keychainpassword
run: |
echo "${{ secrets.INSTALLER_CERT_MAC_P12 }}" | base64 --decode >"${{ env.INSTALLER_CERT_MAC_PATH }}"

security create-keychain \
-p "${{ env.KEYCHAIN_PASSWORD }}" \
"${{ env.KEYCHAIN }}"

security default-keychain \
-s "${{ env.KEYCHAIN }}"

security unlock-keychain \
-p "${{ env.KEYCHAIN_PASSWORD }}" \
"${{ env.KEYCHAIN }}"

security import \
"${{ env.INSTALLER_CERT_MAC_PATH }}" \
-k "${{ env.KEYCHAIN }}" \
-f pkcs12 \
-A \
-T "/usr/bin/codesign" \
-P "${{ secrets.INSTALLER_CERT_MAC_PASSWORD }}"

security set-key-partition-list \
-S apple-tool:,apple: \
-s \
Expand All @@ -155,6 +161,7 @@ jobs:
unzip \
gon_macos.zip \
-d /usr/local/bin

- name: Write gon config to file
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
run: |
Expand Down Expand Up @@ -197,6 +204,7 @@ jobs:
-czv \
-f "${{ env.PACKAGE_FILENAME }}" \
"${{ env.BUILD_FOLDER }}/"

- name: Replace artifact with notarized build
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -237,12 +245,15 @@ jobs:
unzip \
-p /tmp/3.2.0.zip semver-tool-3.2.0/src/semver \
>/tmp/semver

chmod \
+x \
/tmp/semver

if [[ "$(/tmp/semver get prerel "${GITHUB_REF/refs\/tags\//}")" ]]; then
echo "IS_PRE=true" >>$GITHUB_OUTPUT
fi

- name: Create Github Release and upload artifacts
uses: ncipollo/release-action@v1
with:
Expand Down
Loading