Skip to content

Build and Release

Build and Release #2

Workflow file for this run

name: Build and Release
on:
workflow_dispatch:
jobs:
build-and-release-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: npm install
- name: Build and release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run release-windows
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: windows-x64-release-${{ github.run_number }}
release_name: "Windows x64 Release"
draft: false
prerelease: false
- name: Upload .exe to GitHub Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/*.exe
asset_name: "chatall.exe"
asset_content_type: application/octet-stream