Skip to content

Commit

Permalink
chore: add running windows desktop signing on windows hosted machine
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsojko committed Nov 2, 2023
1 parent 7bbe8d3 commit af4d72a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/desktop.test-windows.sign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Desktop Windows Sign & Release On Windows Machine

on:
workflow_dispatch:
push:
branches:
- 'karolsojko/sta-2151-windows-desktop-signing'

jobs:
Windows:
runs-on: windows-latest
env:
WINDOWS_TOKEN_ALIAS: ${{ secrets.WINDOWS_TOKEN_ALIAS }}
WINDOWS_TOKEN_PASSWORD: ${{ secrets.WINDOWS_TOKEN_PASSWORD }}

defaults:
run:
working-directory: packages/desktop
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn install --immutable
- run: yarn build:desktop
- run: yarn run webpack --config desktop.webpack.prod.js
- run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV
- run: yarn run electron-builder --windows --x64 --ia32 --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}

- name: Upload
uses: actions/[email protected]
with:
name: assets
path: |
packages/desktop/dist/*.blockmap
packages/desktop/dist/*.exe
packages/desktop/dist/*.yml
packages/desktop/dist/*.yaml

0 comments on commit af4d72a

Please sign in to comment.