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"