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