Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
parthpetkar committed Jul 12, 2024
1 parent c5b5c39 commit 7542e0b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 39 deletions.
33 changes: 32 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build and Release

on: [push, pull_request]

Expand All @@ -21,3 +21,34 @@ jobs:
with:
name: electron-build-win
path: out/make/squirrel.windows/x64/invoice_gen-1.0.0 Setup.exe

publish_release:
needs: build_on_win
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: electron-build-win
path: build/
- name: List files for debugging
run: ls -R build/
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag_name: v1.0.0
release_name: Release v1.0.0
draft: false
prerelease: false
- name: Upload Release Asset (Windows)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/out/make/squirrel.windows/x64/invoice_gen-1.0.0 Setup.exe
asset_name: invoice_gen-1.0.0-setup-win.exe
asset_content_type: application/octet-stream
38 changes: 0 additions & 38 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit 7542e0b

Please sign in to comment.