Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chsami authored Nov 16, 2024
1 parent 8aa2e1c commit 2eeee6f
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,26 @@ jobs:
with:
node-version: 18.17.1

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
- name: Build project
run: npm run build:x64

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Upload Release Assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*
asset_name: ${{ github.ref_name }}-build.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 2eeee6f

Please sign in to comment.