From 36469d9b437a5216277e52c0d4e6a1ef616022e1 Mon Sep 17 00:00:00 2001 From: Aaron Brethorst Date: Mon, 5 Feb 2024 13:42:50 -0800 Subject: [PATCH] Add automatic deploys on pushes to `main` --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..69ea1fa --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +# .github/workflows/ci.yml + +on: + pull_request: + push: + branches: [main] + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Deploy + # Only run this step if the branch is main + if: github.ref == 'refs/heads/main' + env: + deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }} + run: | + curl "$deploy_url"