Skip to content

Publish Windows

Publish Windows #15

Workflow file for this run

name: Publish Windows
on:
workflow_dispatch:
jobs:
publish:
if: ${{ github.repository_owner == 'la-jarre-a-son' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- name: Checkout git repo
uses: actions/checkout@v2
- name: Install Node.js and NPM
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
registry-url: 'https://npm.pkg.github.com'
scope: '@la-jarre-a-son'
- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish releases
env:
# These values are used for auto updates signing
#APPLE_ID: ${{ secrets.APPLE_ID }}
#APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
#CSC_LINK: ${{ secrets.CSC_LINK }}
#CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_IDENTITY_AUTO_DISCOVERY: false
# This is used for uploading release assets to github
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm run postinstall
npm run build
npm exec electron-builder -- --publish always --win