From c7a9576ba7d405d6d1493bdb7047329a70b13813 Mon Sep 17 00:00:00 2001 From: lukeraymonddowning Date: Mon, 30 Sep 2024 11:11:59 +0100 Subject: [PATCH] wip --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..9f7616c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Deploy + +on: + workflow_run: + workflows: + - Laravel Pint + types: + - completed + release: + types: + - published + +jobs: + deploy: + runs-on: ubuntu-latest + + environment: ${{ github.event_name == 'workflow_run' && 'staging' || 'production' }} + + steps: + - name: Deploy + env: + DEPLOY_URL: ${{ vars.DEPLOY_URL }} + run: curl $DEPLOY_URL