Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vingard authored May 24, 2024
1 parent 52cb3ba commit 88a9fda
Showing 1 changed file with 17 additions and 24 deletions.
41 changes: 17 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,29 @@ on:

jobs:
publish:
name: Build/release
runs-on: ${{ matrix.os }}
container: electronuserland/builder:wine
permissions:
contents: write

strategy:
matrix:
os: [ubuntu-latest]
os: [windows-latest]

steps:
- name: Checkout git repo
uses: actions/checkout@v3
- name: Check out Git repository
uses: actions/checkout@v4

- name: Install Node and NPM
uses: actions/setup-node@v3
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
node-version: 20

- name: Install and build
run: |
npm install
npm run postinstall
npm run build
- name: Publish releases
env:
# # These values are used for auto updates signing
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS }}
# CSC_LINK: ${{ secrets.CSC_LINK }}
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
# This is used for uploading release assets to github
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx cross-env DEBUG=electron-builder npm exec electron-builder -- --publish always --win
- name: Build/release Electron app
uses: heliomarpm/action-electron-builder@v2.1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.GITHUB_TOKEN }}
release: true

0 comments on commit 88a9fda

Please sign in to comment.