Package for Windows #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package for Windows | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-and-deploy-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Set up Node.js | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
# Install dependencies | |
- name: Install Dependencies | |
run: npm install | |
# Build the project | |
- name: Package for Windows | |
run: npm run electron:package:win | |
# Rename artifacts | |
- name: Rename Artifact Executable | |
run: mv "dist/FrameCast Setup *.exe" "dist/FrameCast Setup ${{ github.event.release.tag_name }}.exe" | |
- name: Rename Artifact Executable Blockmap | |
run: mv "dist/FrameCast Setup *.exe.blockmap" "dist/FrameCast Setup ${{ github.event.release.tag_name }}.exe.blockmap" | |
# Upload the release artifact | |
- name: Upload Artifacts | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
dist/FrameCast Setup ${{ github.event.release.tag_name }}.exe | |
dist/FrameCast Setup ${{ github.event.release.tag_name }}.exe.blockmap |