diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ea0fede..8536934 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 @@ -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 @@ -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 +