Skip to content

📦 Stage API

📦 Stage API #3

Workflow file for this run

name: 📦 Stage API
on:
workflow_dispatch:
jobs:
stage:
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
deployments: write
steps:
- name: 🍀 Start Deployment
uses: bobheadxi/deployments@v1
id: deployment
with:
step: start
env: API - Production
- name: 🚀 Stage to Server
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |-
cd ${{ secrets.SERVER_DIR }}
make prod
- name: ✅ Update Deployment Status
uses: bobheadxi/deployments@v1
if: always()
with:
step: finish
status: ${{ job.status }}
env: ${{ steps.deployment.outputs.env }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}