Chore: Fix ci. #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |