Skip to content

Commit

Permalink
Merge pull request #2 from kimsseTheWolf/InterfaceUpdate
Browse files Browse the repository at this point in the history
v1.0.1 Release
  • Loading branch information
kimsseTheWolf authored Jan 7, 2024
2 parents ea621db + d7e740c commit 9881025
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/auto_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Release
on:
push:
tags:
- '*'

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install dependencies
run: npm ci

- name: Build app
run: npm run dist

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(node -p "require('./package.json').version")

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload_release_asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/your-app-setup-${{ steps.get_version.outputs.VERSION }}.exe
asset_name: your-app-setup-${{ steps.get_version.outputs.VERSION }}.exe
asset_content_type: application/octet-stream

0 comments on commit 9881025

Please sign in to comment.