44  workflow_dispatch :
55    inputs :
66      env :
7-         description : ' Deploy to (dev|prod|dev prod)' 
7+         description : " Deploy to (dev|prod|dev prod)" 
88        required : true 
9-         default : ' dev' 
9+         default : " dev" 
1010      clean :
11-         description : ' Clean cache (yes|no)' 
11+         description : " Clean cache (yes|no)" 
1212        required : true 
13-         default : ' no ' 
13+         default : " no " 
1414      excludeSubfolder :
15-         description : ' Exclude a subfolder from deletion' 
15+         description : " Exclude a subfolder from deletion" 
1616        required : false 
17-         default : ' ' 
17+         default : " " 
18+       index-mode :
19+         description : ' Type of indexing. "index" to push to Algolia, "console" for dry run.' 
20+         required : true 
21+         default : " index" 
22+         type : choice 
23+         options :
24+           - console 
25+           - index 
1826jobs :
1927  set-state :
2028    runs-on : ubuntu-latest 
3947result-encoding : string 
4048      - name : Get branch name 
4149        shell : bash 
42-         run : echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT 
50+         run : echo "branch=${GITHUB_REF#refs/heads/}" >> " $GITHUB_OUTPUT"  
4351        id : get_branch 
4452
4553  echo-state :
8189      - name : Setup Node v16 for Yarn v3 
8290        uses : actions/setup-node@v3 
8391        with :
84-           node-version : ' 16.15.0' #  Current LTS version
92+           node-version : " 16.15.0" #  Current LTS version
8593
8694      - name : Enable Corepack for Yarn v3 
8795        run : corepack enable 
@@ -123,7 +131,7 @@ jobs:
123131          PATH_PREFIX : ${{ needs.set-state.outputs.path_prefix }} 
124132          GATSBY_ADOBE_LAUNCH_SRC : ${{ secrets.AIO_ADOBE_LAUNCH_DEV_SRC }} 
125133          GATSBY_ADDITIONAL_ADOBE_ANALYTICS_ACCOUNTS : ${{ secrets.AIO_REPORT_SUITE_DEV}} 
126-           GATSBY_ADOBE_ANALYTICS_ENV : ' dev' 
134+           GATSBY_ADOBE_ANALYTICS_ENV : " dev" 
127135          REPO_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
128136          REPO_OWNER : ${{ github.event.repository.owner.login }} 
129137          REPO_NAME : ${{ github.event.repository.name }} 
@@ -142,21 +150,22 @@ jobs:
142150          GATSBY_ALGOLIA_SEARCH_INDEX : ${{ secrets.AIO_ALGOLIA_SEARCH_INDEX }} 
143151          GATSBY_ALGOLIA_INDEX_ENV_PREFIX : ${{ secrets.AIO_ALGOLIA_INDEX_ENV_PREFIX }} 
144152          GATSBY_FEDS_PRIVACY_ID : ${{ secrets.AIO_FEDS_PRIVACY_ID }} 
153+           GATSBY_SITE_DOMAIN_URL : https://developer-stage.adobe.com 
145154
146155      - name : Deploy 
147156        uses : AdobeDocs/static-website-deploy@master 
148157        with :
149-           enabled-static-website : ' true' 
150-           source : ' public' 
158+           enabled-static-website : " true" 
159+           source : " public" 
151160          target : ${{ needs.set-state.outputs.path_prefix }} 
152161          connection-string : ${{ secrets.AIO_AZURE_DEV_CONNECTION_STRING }} 
153-           remove-existing-files : ' true' 
162+           remove-existing-files : " true" 
154163          exclude-subfolder : ${{ needs.set-state.outputs.exclude_subfolder }} 
155164      - name : Purge Fastly Cache 
156165        uses : AdobeDocs/gatsby-fastly-purge-action@master 
157166        with :
158167          fastly-token : ${{ secrets.AIO_FASTLY_TOKEN }} 
159-           fastly-url : ' ${{ secrets.AIO_FASTLY_DEV_URL}}${{ needs.set-state.outputs.path_prefix }}' 
168+           fastly-url : " ${{ secrets.AIO_FASTLY_DEV_URL}}${{ needs.set-state.outputs.path_prefix }}" 
160169
161170  pre-build-production :
162171    needs : [set-state] 
@@ -184,7 +193,7 @@ jobs:
184193      - name : Setup Node v16 for Yarn v3 
185194        uses : actions/setup-node@v3 
186195        with :
187-           node-version : ' 16.15.0' #  Current LTS version
196+           node-version : " 16.15.0" #  Current LTS version
188197
189198      - name : Enable Corepack for Yarn v3 
190199        run : corepack enable 
@@ -226,7 +235,7 @@ jobs:
226235          PATH_PREFIX : ${{ needs.set-state.outputs.path_prefix }} 
227236          GATSBY_ADOBE_LAUNCH_SRC : ${{ secrets.AIO_ADOBE_LAUNCH_PROD_SRC }} 
228237          GATSBY_ADDITIONAL_ADOBE_ANALYTICS_ACCOUNTS : ${{ secrets.AIO_REPORT_SUITE_PROD }} 
229-           GATSBY_ADOBE_ANALYTICS_ENV : ' production' 
238+           GATSBY_ADOBE_ANALYTICS_ENV : " production" 
230239          REPO_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
231240          REPO_OWNER : ${{ github.event.repository.owner.login }} 
232241          REPO_NAME : ${{ github.event.repository.name }} 
@@ -242,23 +251,24 @@ jobs:
242251          GATSBY_ALGOLIA_APP_ID : ${{ secrets.AIO_ALGOLIA_APP_ID }} 
243252          GATSBY_ALGOLIA_API_KEY : ${{ secrets.AIO_ALGOLIA_API_KEY }} 
244253          ALGOLIA_WRITE_API_KEY : ${{ secrets.AIO_ALGOLIA_WRITE_API_KEY }} 
245-           ALGOLIA_INDEXATION_MODE : ${{ secrets.AIO_ALGOLIA_INDEXATION_MODE  }} 
246-           ALGOLIA_INDEX_NAME : ${{ secrets.ALGOLIA_INDEX_NAME || github.event.repository.name }} 
254+           ALGOLIA_INDEXATION_MODE : ${{ github.event.inputs.index-mode || 'index'  }} 
255+           GATSBY_ALGOLIA_INDEX_NAME : ${{ secrets.ALGOLIA_INDEX_NAME || github.event.repository.name }} 
247256          GATSBY_ALGOLIA_INDEX_ALL_SRC : ${{ secrets.AIO_ALGOLIA_INDEX_ALL_SRC }} 
248257          GATSBY_ALGOLIA_SEARCH_INDEX : ${{ secrets.AIO_ALGOLIA_SEARCH_INDEX }} 
249258          GATSBY_ALGOLIA_INDEX_ENV_PREFIX : ${{ secrets.AIO_ALGOLIA_INDEX_ENV_PREFIX }} 
250259          GATSBY_FEDS_PRIVACY_ID : ${{ secrets.AIO_FEDS_PRIVACY_ID }} 
260+           GATSBY_SITE_DOMAIN_URL : https://developer.adobe.com 
251261      - name : Deploy 
252262        uses : AdobeDocs/static-website-deploy@master 
253263        with :
254-           enabled-static-website : ' true' 
255-           source : ' public' 
264+           enabled-static-website : " true" 
265+           source : " public" 
256266          target : ${{ needs.set-state.outputs.path_prefix }} 
257267          connection-string : ${{ secrets.AIO_AZURE_PROD_CONNECTION_STRING }} 
258-           remove-existing-files : ' true' 
268+           remove-existing-files : " true" 
259269          exclude-subfolder : ${{ needs.set-state.outputs.exclude_subfolder }} 
260270      - name : Purge Fastly Cache 
261271        uses : AdobeDocs/gatsby-fastly-purge-action@master 
262272        with :
263273          fastly-token : ${{ secrets.AIO_FASTLY_TOKEN }} 
264-           fastly-url : ' ${{ secrets.AIO_FASTLY_PROD_URL }}${{ needs.set-state.outputs.path_prefix }}' 
274+           fastly-url : " ${{ secrets.AIO_FASTLY_PROD_URL }}${{ needs.set-state.outputs.path_prefix }}" 
0 commit comments