Merge pull request #3 from BRIKEV/staging #4
This file contains hidden or 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: Deploy to staging | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main | |
| uses: actions/checkout@v4 | |
| with: | |
| ssh-key: ${{ secrets.DEPLOY_KEY }} | |
| - name: Setup Git | |
| run: | | |
| git config user.name "Staging Sync Bot" | |
| git config user.email "staging-sync-bot@users.noreply.github.com" | |
| - name: Push to staging | |
| run: | | |
| git fetch origin staging | |
| git checkout staging | |
| git merge main --no-edit | |
| git push origin staging |