Skip to content

Commit

Permalink
test: build
Browse files Browse the repository at this point in the history
  • Loading branch information
xie392 committed Jun 2, 2024
1 parent 4c58a4b commit 0e8ee70
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 153 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build

on:
push:
branches: [master]
paths-ignore:
- '**.md'
- '**.spec.js'
- '.idea'
- '.vscode'
- '.dockerignore'
- 'Dockerfile'
- '.gitignore'
- '.github/**'
- '!.github/workflows/build.yml'

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, windows-latest]

steps:
- name: Checkout Code
uses: actions/checkout@v3

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

- name: Install Dependencies
run: npm install

- name: Build Release Files
run: npm run build:electron
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: release_on_${{ matrix. os }}
path: release/
retention-days: 5
76 changes: 0 additions & 76 deletions .github/workflows/publish-macos.yml

This file was deleted.

76 changes: 0 additions & 76 deletions .github/workflows/publish-window.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-react-capacitor-electron",
"version": "0.0.1",
"version": "0.0.4",
"type": "module",
"description": "A cross-platform desktop app built with Vite, React, Capacitor, and Electron.",
"scripts": {
Expand Down

0 comments on commit 0e8ee70

Please sign in to comment.