This commit is contained in:
41
.gitea/workflows/deploy.yml
Normal file
41
.gitea/workflows/deploy.yml
Normal 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
|
||||
Reference in New Issue
Block a user