Skip to content

Add new button for open with code #3

Add new button for open with code

Add new button for open with code #3

Workflow file for this run

name: Build and Release
on:
push:
branches:
- main
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: '20'
- 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