Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-vm committed Jul 15, 2024
1 parent 08e9e43 commit c47fda4
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
- name: Deploy Linux
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish
run: npm run publish -- --publish=always
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,17 @@ jobs:
- name: Install dependencies
run: npm install

# - uses: apple-actions/import-codesign-certs@v3
# with:
# p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
# p12-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}
- uses: apple-actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
p12-password: ${{ secrets.MACOS_CERTIFICATE_PWD }}

- name: Build Mac
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_ID_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
run: npm run build:mac -- --publish=onTag
run: npm run build:mac

- name: Build Mac
- name: Deploy Mac
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_ID_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
run: npm run publish
run: npm run publish -- --publish=always
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ jobs:
- name: Deploy Windows
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish
run: npm run publish -- --publish=always
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build — Linux
name: Test build — Linux
run-name: ${{ github.actor }} is building for Linux.

on:
pull_request:
branches: [ main ]

jobs:
build-on-linux:
test-on-linux:
runs-on: ubuntu-latest

defaults:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build — Mac
name: Test build — Mac
run-name: ${{ github.actor }} is building for MacOS.

on:
pull_request:
branches: [ main ]

jobs:
deploy-on-mac:
test-on-mac:
runs-on: macos-13

defaults:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build — Windows
name: Test build — Windows
run-name: ${{ github.actor }} is building for Windows.

on:
pull_request:
branches: [ main ]

jobs:
deploy-on-windows:
test-on-windows:
runs-on: windows-latest

defaults:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"build:mac": "npm run build && electron-builder --mac",
"build:linux": "npm run build && electron-builder --linux",
"build:unpack": "npm run build && electron-builder --dir",
"publish": "electron-builder",
"postinstall": "electron-builder install-app-deps"
},
"dependencies": {
Expand Down

0 comments on commit c47fda4

Please sign in to comment.