Skip to content

Publish Build

Publish Build #2

Workflow file for this run

name: Publish Build
on:
workflow_dispatch: # This allows the action to be run manually
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # Use your desired Node.js version
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: 'v1.0.0' # Change this to your desired tag name or use a dynamic value
files: ./dist/**/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}