Skip to content

Create FUNDING.yml

Create FUNDING.yml #25

Workflow file for this run

name: Deploy circuit-sketcher-app
on:
push:
branches:
- main
permissions:
contents: write # Allows actions to push to the repository (required for gh-pages)
pages: write # Allows actions to deploy to GitHub Pages
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/[email protected]
# Step 2: Set up Node.js using .nvmrc
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version-file: .nvmrc
# Step 3: Install dependencies
- name: Install dependencies
run: npm install
# Step 4: Build the project
- name: Build project
run: npm run build
# Step 5: Upload production-ready build files (artifact)
- name: Upload production-ready build files
uses: actions/[email protected]
with:
name: production-files
path: ./dist
deploy:
runs-on: ubuntu-latest
needs: build
steps:
# Step 1: Download artifact
- name: Download artifact
uses: actions/[email protected]
with:
name: production-files
path: ./dist
# Step 2: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist