MInor Changes #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build_on_win: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: install dependencies | |
run: npm install | |
- name: build | |
run: npm run make | |
- name: Archive Artifact | |
uses: actions/upload-artifact@v2 | |
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: 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 |