Skip to content

Commit

Permalink
added release support in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonicrahul committed Feb 17, 2024
1 parent a9b3ec5 commit daff7e5
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Build and Deploy Windows App
on:
push:
branches:
- main # Adjust the branch as per your requirements
- main

jobs:
build_and_deploy:
runs-on: windows-latest # Specify the operating system for the build
runs-on: windows-latest

steps:
- name: Checkout repository
Expand All @@ -16,10 +16,10 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20 # Adjust the Node.js version as per your requirements
node-version: 20

- name: Install dependencies
run: npm install # Make sure this installs all required dependencies
run: npm install

- name: Install Electron Builder
run: npm install -g electron-builder
Expand All @@ -32,3 +32,26 @@ jobs:
with:
name: windows-executable
path: dist/20-20-20-refresh Setup 1.0.0.exe

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: v1.0.0
release_name: Release v1.0.0
body: Release notes for v1.0.0
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/20-20-20-refresh Setup 1.0.0.exe
asset_name: 20-20-20-refresh Setup 1.0.0.exe
asset_content_type: application/octet-stream

0 comments on commit daff7e5

Please sign in to comment.