Skip to content

Commit

Permalink
cert sign for mac doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
freekode committed Feb 14, 2024
1 parent cd3f3b6 commit 2f0ec17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/build-electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
key: ${{ runner.os }}-jdks

- name: Build jar in unix
if: ${{ matrix.environment.os != 'windows-latest' }}
if: ${{ runner.os != 'Windows' }}
run: |
cd ./boot
./gradlew build
- name: Build jar in windows
if: ${{ matrix.environment.os == 'windows-latest' }}
if: ${{ runner.os == 'Windows' }}
run: |
cd ./boot
./gradlew.bat build
Expand All @@ -61,22 +61,8 @@ jobs:
if: ${{ inputs.dry-run == true }}
run: npm run build --prefix electron

- name: Write Mac certificate to a file
if: ${{ inputs.dry-run == false && matrix.environment.os == 'macos-latest' }}
env:
CERTIFICATES_P12: ${{ secrets.CERTIFICATES_P12 }}
run: echo "$CERTIFICATES_P12" | base64 --decode > certificates.p12

- name: Publish electron for Mac
if: ${{ inputs.dry-run == false && matrix.environment.os == 'macos-latest' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ../certificates.p12
CSC_KEY_PASSWORD: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
run: npm run publish --prefix electron

- name: Publish electron
if: ${{ inputs.dry-run == false && matrix.environment.os != 'macos-latest' }}
if: ${{ inputs.dry-run == false }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish --prefix electron
Expand All @@ -86,6 +72,6 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: tp2intervals-${{ matrix.environment.os }}
name: tp2intervals-${{ runner.os }}
path: electron/dist/tp2intervals*
if-no-files-found: error
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: build

on:
# push:
# branches: [ main ]
push:
branches: [ main ]
pull_request:
workflow_dispatch:

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: release

on:
push:
branches: [ main ]
tags: [v*]
workflow_dispatch:

jobs:
jar:
uses: ./.github/workflows/build-jar.yml
secrets: inherit
with:
jar-name: tp2intervals
jar-artifact-name: tp2intervals-jar
Expand All @@ -18,6 +18,7 @@ jobs:
needs:
- jar
uses: ./.github/workflows/build-docker-image.yml
secrets: inherit
with:
jar-name: tp2intervals
jar-artifact-name: tp2intervals-jar
Expand Down

0 comments on commit 2f0ec17

Please sign in to comment.