version: 36 jobs: - job: name: Production Deployment steps: - checkout: {} - run: name: Deploy to SEELF environment: SEELF_API_KEY: ${{ secrets.SEELF_API_KEY }} command: | curl -i -X POST \ -H "Authorization:Bearer $SEELF_API_KEY" \ -H "Content-Type: application/json" \ -d "{ \"environment\":\"production\",\"git\":{ \"branch\": \"${ONDEDEV_BRANCH}\" } }" \ https://deploy.fmd.gg/api/v1/apps/2nnjlusmcYTFzgKHFxmGLzAtkAH/deployments triggers: - push: branches: - main - job: name: Staging Deployment steps: - checkout: {} - run: name: Deploy to SEELF environment: SEELF_API_KEY: ${{ secrets.SEELF_API_KEY }} command: | curl -i -X POST \ -H "Authorization:Bearer $SEELF_API_KEY" \ -H "Content-Type: application/json" \ -d "{ \"environment\":\"staging\",\"git\":{ \"branch\": \"${ONDEDEV_BRANCH}\" } }" \ https://deploy.fmd.gg/api/v1/apps/2nnjlusmcYTFzgKHFxmGLzAtkAH/deployments triggers: - push: branches: - staging