Skip to content

Workflow file for this run

name: Deploy
on:
# Runs on pushes targeting the default branch
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Default to bash
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build
deploy:
needs: build
uses: czy21/share/.github/workflows/deploy-web.yml@main
with:
web_name: tool
secrets: inherit