Files
chatgpt-api-web/.gitea/workflows/default.yml
heimoshuiyu 943cb5f392
All checks were successful
Build static content / build (push) Successful in 4m30s
add gitea action
2024-03-07 02:08:22 +08:00

27 lines
611 B
YAML

name: Build static content
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- run: npm install
- run: npm run build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: dist-files
path: './dist/'