File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 66 repository_dispatch :
77 types : [production-deployment]
88
9+ # Allows to run the workflow manually from the Actions tab
10+ workflow_dispatch :
11+ inputs :
12+ tag :
13+ description : Tag or branch to deploy
14+ required : false
15+ default : main
16+ type : string
17+
918# This workflow is made up of one job that calls the reusable workflow in graasp-deploy
1019jobs :
1120 deploy-app-to-prod :
1625 - name : Checkout code
1726 uses : actions/checkout@v4
1827 with :
19- ref : ${{ github.event.client_payload.tag }}
28+ ref : ${{ github.event.client_payload.tag || inputs.tag }}
2029
2130 - name : Yarn install and Cache dependencies
2231 uses : graasp/graasp-deploy/.github/actions/yarn-install-and-cache@v1
2837 VITE_GRAASP_APP_KEY : ${{ secrets.APP_KEY }}
2938 VITE_SENTRY_ENV : production
3039 VITE_SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
31- VITE_VERSION : ${{ github.event.client_payload.tag }}
40+ VITE_VERSION : ${{ github.event.client_payload.tag || inputs.tag }}
3241 run : yarn build
3342 shell : bash
3443
Original file line number Diff line number Diff line change 66 repository_dispatch :
77 types : [staging-deployment]
88
9+ # Allows to run the workflow manually from the Actions tab
10+ workflow_dispatch :
11+ inputs :
12+ tag :
13+ description : Tag or branch to deploy
14+ required : false
15+ default : main
16+ type : string
17+
918# This workflow is made up of one job that calls the reusable workflow in graasp-deploy
1019jobs :
1120 deploy-app-to-staging :
1625 - name : Checkout code
1726 uses : actions/checkout@v4
1827 with :
19- ref : ${{ github.event.client_payload.tag }}
28+ ref : ${{ github.event.client_payload.tag || inputs.tag }}
2029
2130 - name : Yarn install and Cache dependencies
2231 uses : graasp/graasp-deploy/.github/actions/yarn-install-and-cache@v1
2837 VITE_GRAASP_APP_KEY : ${{ secrets.APP_KEY }}
2938 VITE_SENTRY_ENV : staging
3039 VITE_SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
31- VITE_VERSION : ${{ github.event.client_payload.tag }}
40+ VITE_VERSION : ${{ github.event.client_payload.tag || inputs.tag }}
3241 run : yarn build
3342 shell : bash
3443
You can’t perform that action at this time.
0 commit comments