Skip to content

Chore: Fix ci.

Chore: Fix ci. #19

Workflow file for this run

name: build-caddy-admin-ui
on:
push:
branches:
- dev
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 22
- name: 📥 Download deps
working-directory: "web"
run: npm install
- name: 🏗 Run build script
working-directory: "web"
run: npm run build
- name: 📦 Move build
run: |
mkdir main
cp -r web/out main/build
cp -r screenshots main/
cp caddy_admin_ui.go webshell.go go.mod go.sum README.md main/
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: main # The branch the action should deploy to.
folder: "main" # The folder the action should deploy.