Deploy App to Production #65
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: Deploy App to Production | |
on: | |
workflow_dispatch: | |
inputs: | |
# commit hash (for frontend deploy to fleek) | |
commit: | |
description: "Branch/Commit ref" | |
default: "origin/main" | |
type: string | |
jobs: | |
deploy-app: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Checkout production-app | |
run: | | |
git fetch | |
git checkout -b production-app origin/production-app | |
git reset --hard ${{ github.event.inputs.commit }} | |
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/gitcoinco/passport.git | |
git push origin production-app -f |