Skip to content
name: Chatbook Windows
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Unzip out.zip to current directory
run: |
Expand-Archive -Path out.zip -DestinationPath .
working-directory: ./express
- name: Set up GitHub Token
run: echo "GH_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV
working-directory: ./express
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v1
- name: Install dependencies
run: npm install
working-directory: ./express
- name: Chatbook Windows
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npm run build
working-directory: ./express
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Chatbook 0.1.0.exe
path: express/dist/*.exe