Push main to prod #7
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: Push main to prod | |
on: workflow_dispatch | |
permissions: | |
contents: write | |
jobs: | |
push-prod: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# this means that it is a full history clone, not a shallow one | |
# heroku push fails with a shallow clone | |
fetch-depth: 0 | |
- name: git push | |
run: | | |
git push -f origin main:prod |