Initial
Some checks failed
Deploy to Easypanel / deploy (push) Has been cancelled

This commit is contained in:
Kunthawat Greethong
2026-04-27 19:13:27 +07:00
commit 4ab5f16798
21 changed files with 1081 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
name: Deploy to Easypanel
on:
push:
branches:
- main
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Push to Easypanel
env:
EASYPANEL_HOST: ${{ secrets.EASYPANEL_HOST }}
EASYPANEL_TOKEN: ${{ secrets.EASYPANEL_TOKEN }}
EASYPANEL_PROJECT: ${{ secrets.EASYPANEL_PROJECT }}
run: |
# Install Easypanel CLI
curl -sSL https://get.easypanel.io | sh
# Deploy
easypanel deploy $EASYPANEL_PROJECT \
--host $EASYPANEL_HOST \
--token $EASYPANEL_TOKEN \
--dir ./dist