Skip to content

Commit

Permalink
Update build_electron_app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
beniroquai authored May 1, 2024
1 parent bebd536 commit efd5a20
Showing 1 changed file with 42 additions and 17 deletions.
59 changes: 42 additions & 17 deletions .github/workflows/build_electron_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,54 @@ on:
- main

jobs:
version-bump:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Bump version and push tag
uses: phips28/[email protected]
with:
github-token: ${{ env.GH_TOKEN }}
tag-prefix: ''
minor: true # Change this to 'true' for minor, 'false' for patch updates

build:
runs-on: ${{ matrix.os }}
needs: version-bump
runs-on: windows-latest # Focused on Windows to generate .exe
strategy:
matrix:
os: [windows-latest, macos-latest]
node-version: [18.x]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install

- name: Install dependencies
run: npm install
- name: Build and Package
run: npm run dist --publish=never

- name: Build and Package
run: npm run dist --publish=never
- name: Upload EXE Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-exe
path: dist/*.exe

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-artifacts
path: dist/*
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: Windows-latest-exe
path: dist
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/*.exe
token: ${{ secrets.GH_TOKEN }}

0 comments on commit efd5a20

Please sign in to comment.