Skip to content

Commit

Permalink
Adding buildrelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DynastyKids authored Oct 30, 2023
1 parent f26f323 commit 1594839
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/buildrelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build and Release

on:
push:
tags:
- 'v*'

jobs:
build:
strategy:
matrix:
os: [windows-latest, macos-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install Dependencies
run: npm install

- name: Build Application
run: npm run make

- name: Package Application
run: npm run package

- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.ACTION }}

- name: Upload .exe installer
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: './out/make/squirrel.windows/x64/warehouse_electron-${{ github.ref }} Setup.exe'
asset_name: 'warehouse_electron-${{ github.ref }} Setup.exe'
asset_content_type: application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.ACTION }}

0 comments on commit 1594839

Please sign in to comment.