Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🐋 ci: deploy test server post-dev image build (#3596)

Danny Avila59ae2914aa9a
diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml
new file mode 100644
index 0000000000..457f6b8ceb
--- /dev/null
+++ b/.github/workflows/deploy-dev.yml
@@ -0,0 +1,37 @@
+name: Update DigitalOcean Server
+
+on:
+ workflow_run:
+ workflows: ["Docker Dev Images Build"]
+ types:
+ - completed
+ workflow_dispatch:
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ if: |
+ github.repository == 'danny-avila/LibreChat' &&
+ (github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success')
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Install doctl
+ uses: digitalocean/action-doctl@v2
+ with:
+ token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
+
+ - name: Run update script on DigitalOcean Droplet
+ run: |
+ doctl compute ssh ${{ secrets.DO_DROPLET_NAME }} --ssh-command '
+ sudo -i -u danny bash << EOF
+ cd ~/LibreChat && \
+ git fetch origin main && \
+ git checkout do-deploy && \
+ git rebase origin/main && \
+ npm run update:deployed && \
+ npm run start:deployed && \
+ echo "Update completed. Application should be running now."
+ EOF
+ '