Skip to content

Commit

Permalink
Only run Apple cert steps on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg authored Dec 3, 2024
1 parent 036302c commit ab82885
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies (ubuntu only)
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: setup node
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'

- name: install Rust stable
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
Expand All @@ -51,10 +51,11 @@ jobs:
with:
workspaces: './src-tauri -> target'

- name: install frontend dependencies
- name: Install FrontEnd dependencies
run: npm install

- name: Import Apple Developer Certificate
if: runner.os == 'macOS'
env:
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
Expand All @@ -68,7 +69,8 @@ jobs:
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KEYCHAIN_PASSWORD" build.keychain
security find-identity -v -p codesigning build.keychain
- name: Verify Certificate
- name: Verify Apple Certificate
if: runner.os == 'macOS'
run: |
CERT_INFO=$(security find-identity -v -p codesigning build.keychain | grep "Developer ID Application")
CERT_ID=$(echo "$CERT_INFO" | awk -F'"' '{print $2}')
Expand Down

0 comments on commit ab82885

Please sign in to comment.