Skip to content

v2.0.5

v2.0.5 #24

name: Windows Production Publish
on:
release:
types: [published]
env:
version: ${{ github.ref_name }}
jobs:
build-and-deploy:
runs-on: windows-latest
permissions:
id-token: write
contents: write
packages: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get package version
id: package-version
shell: pwsh
run: |
$version = (Get-Content -Raw -Path .\package.json | ConvertFrom-Json).version
echo "Package version: $version"
echo "version=$version" >> $env:GITHUB_OUTPUT
- name: Setup NodeJS env
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Authenticate with github package registry
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build:windows
- name: debug
run: |
ls -l ./out/make/squirrel.windows/x64/
ls "./out/make/squirrel.windows/x64/access-8-math-web-${{steps.package-version.outputs.version}} Setup.exe"
- name: Upload Installer
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: './out/make/squirrel.windows/x64/access-8-math-web-${{steps.package-version.outputs.version}} Setup.exe'