Add .gitea/workflows/production.yaml
Michael Kinder michael@noreply.git.foggymtndrifter.com
Tue, 22 Oct 2024 13:40:12 -0400
1 files changed,
23 insertions(+),
0 deletions(-)
jump to
A
.gitea/workflows/production.yaml
@@ -0,0 +1,23 @@
+name: Production Deployment + +on: + push: + branches: + - 'main' + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Deploy to SEELF + env: + SEELF_API_KEY: ${{ secrets.SEELF_API_KEY }} + run: | + curl -i -X POST \ + -H "Authorization:Bearer $SEELF_API_KEY" \ + -H "Content-Type: application/json" \ + -d "{ \"environment\":\"production\",\"git\":{ \"branch\": \"${{ github.ref_name }}\" } }" \ + https://deploy.fmd.gg/api/v1/apps/2nnjlusmcYTFzgKHFxmGLzAtkAH/deployments