mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-06-18 12:50:44 -04:00
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: Build/release-appx
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
# Platforms to build on/for
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest]
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node.js, NPM and Yarn
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 22
|
|
- name: Set environment variable USE_HARD_LINKS
|
|
run: echo "USE_HARD_LINKS=false" >> $GITHUB_ENV
|
|
- name: Modify package.json for Windows Store build
|
|
if: startsWith(matrix.os, 'windows')
|
|
run: |
|
|
$packageJson = Get-Content package.json -Raw | ConvertFrom-Json
|
|
$packageJson.build.win.target = @(
|
|
@{
|
|
target = "appx"
|
|
arch = @("x64", "arm64", "ia32")
|
|
}
|
|
)
|
|
$packageJson | ConvertTo-Json -Depth 10 | Set-Content package.json
|
|
- name: Build/release for Windows Store
|
|
if: startsWith(matrix.os, 'windows')
|
|
uses: samuelmeuli/action-electron-builder@v1.6.0
|
|
with:
|
|
build_script_name: "build"
|
|
# GitHub token, automatically provided to the action
|
|
# (No need to define this secret in the repo settings)
|
|
github_token: ${{ secrets.github_token }}
|