fix: notification not set correctly / 修复: 通知无法正常设置 #10
Workflow file for this run
This file contains hidden or 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
| # main.yml | |
| name: Build Electron App For Win | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| jobs: | |
| release: | |
| name: build and release electron app | |
| runs-on: ${{ matrix.os}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-latest] | |
| steps: | |
| - name: Check out git repository | |
| uses: actions/[email protected] | |
| - name: Install Node.js | |
| uses: actions/[email protected] | |
| - name: npm install | |
| run: | | |
| npm install | |
| - name: cleanup artifacts in dist | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| npx rimraf "dist/!(*.exe)" | |
| npx rimraf "dist/!(*.msi)" | |
| - name: build windows app | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| npm run dist:win | |
| - name: upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.os }} | |
| path: | | |
| dist/*.exe | |
| dist/*.msi | |
| - name: release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| dist/*.exe | |
| dist/*.msi |