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 2, 2024
1 parent 4428139 commit 1d92220
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build_electron_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0 # Ensure all tags are fetched
- name: Bump version and push tag
uses: phips28/gh-action-bump-version@master
uses: phips28/gh-action-bump-version@master
with:
github-token: ${{ secrets.GH_TOKEN }}
tag-prefix: ''
minor: true
minor: true # Change this to 'true' for minor, 'false' for patch updates

build:
needs: version-bump
runs-on: windows-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
node-version: [18.x]
steps:
- uses: actions/checkout@v4
Expand All @@ -41,10 +42,11 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run dist --publish=never
- uses: actions/upload-artifact@v2
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: windows-exe-artifact
path: dist/*.exe
name: ${{ runner.os }}-artifact
path: dist/*${{ matrix.os == 'windows-latest' ? '.exe' : '.dmg' }}

release:
needs: build
Expand All @@ -55,13 +57,17 @@ jobs:
fetch-depth: 0
- uses: actions/download-artifact@v3
with:
name: windows-exe-artifact
name: windows-latest-artifact
path: dist
- uses: actions/download-artifact@v3
with:
name: macos-latest-artifact
path: dist
- run: git fetch --tags
- run: echo "RELEASE_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/*.exe
files: dist/*
tag_name: ${{ env.RELEASE_TAG }}
token: ${{ secrets.GH_TOKEN }}

0 comments on commit 1d92220

Please sign in to comment.