Task/create a pull request #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Render Deployment | ||
on: | ||
push: | ||
branches: | ||
- master | ||
# note that your "main" branch might be called main instead of master | ||
pull_request: | ||
branches: [master] | ||
types: [opened, synchronize] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run build | ||
run: echo "Building the project..." | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: ${{ github.event_name == 'push' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Deploy to Render | ||
run: echo "Deploying the project..." | ||
- name: Trigger deployment | ||
run: curl https://api.render.com/deploy/srv-${{ secrets.RENDER_SERVICE_ID }}?key=${{ secrets.RENDER_API_KEY }} | ||