Skip to content

Commit

Permalink
Update building path and release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ccxzhang committed Aug 23, 2024
1 parent 2fc14fe commit 7a35866
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
tags:
- 'v*.*.*'

permissions:
contents: write

jobs:
package_and_release:
runs-on: ${{ matrix.os }}
Expand All @@ -12,21 +16,25 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Install dependencies
run: npm install

- name: Build application
run: npm run build:${{ matrix.os == 'macos-latest' && 'mac' || 'win' }}

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ github.run_number }}-${{ matrix.os }}
path: out/make/**
path: dist/**

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
if: success()
env:
Expand All @@ -35,6 +43,6 @@ jobs:
draft: false
prerelease: false
files: |
out/make/**/*.zip
out/make/**/*.exe
out/make/**/*.dmg
dist/*.zip
dist/*.dmg
dist/*.exe

0 comments on commit 7a35866

Please sign in to comment.