Skip to content

Deploy App to Production #64

Deploy App to Production

Deploy App to Production #64

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