Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoLinXiaoZhu authored Aug 26, 2024
1 parent 56d1b75 commit 90d62f2
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,31 @@ on:
jobs:
build-and-release-on-windows:
runs-on: windows-latest
steps:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v4.0.3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.
node-version: '14'

node-version: 16

- name: Install dependencies
run: npm ci

- name: Build and Package the app for Windows
run: npm run make
env:
FORGE_PLATFORM: win32


- name: Upload Artifact (Windows)
uses: actions/upload-artifact@v3
with:
name: app-release-windows
path: dist/electron-app/

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 90d62f2

Please sign in to comment.