@@ -93,13 +93,13 @@ jobs:
93
93
with :
94
94
node-version : ' 20'
95
95
96
- - name : Checkout Versioning action
96
+ - name : Checkout versioning action
97
97
uses : actions/checkout@v4
98
98
with :
99
99
repository : elastic/workflows
100
100
path : ./workflows
101
101
102
- - name : Install Versioning action dependencies
102
+ - name : Install versioning action dependencies
103
103
run : npm install
104
104
working-directory : ./workflows/.github/actions/version-content
105
105
@@ -111,36 +111,36 @@ jobs:
111
111
content-repo : ${{ github.repository }}
112
112
base-ref : ${{ github.base_ref }}
113
113
114
- # - name: Tidy before Vercel CLI run
115
- # if: github.event.pull_request.merged != true && github.event.pull_request.closed != true
116
- # shell: bash
117
- # run: |
118
- # mkdir ${{ github.workspace }}/build/
119
- # mv ${{ github.workspace }}/${{ env.PREBUILD }} ${{ github.workspace }}/build/
120
- # mv ${{ github.workspace }}/${{ env.SITE_REPO }} ${{ github.workspace }}/build/
121
-
122
- # - name: Generate preview
123
- # if: github.event.pull_request.merged != true && github.event.pull_request.closed != true
124
- # id: vercel-deploy
125
-
126
- # continue-on-error: false
127
- # with:
128
- # vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
129
- # vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} #Required
130
- # vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_STAGING_PREVIEW_DOCS }} #Required
131
- # vercel-project-name: co-preview-docs
132
- # working-directory: ${{ github.workspace }}/build/
133
- # github-token: ${{ secrets.VERCEL_GITHUB_TOKEN }} #Optional
134
- # github-comment: true # Otherwise need github-token (VERCEL_GITHUB_TOKEN)
135
-
136
- # - name: Portal for deploy
137
- # if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch
138
- # shell: bash
139
- # run: |
140
- # cd ${{ github.workspace }}/${{ env.PREBUILD }}
141
- # git config user.name elasticdocs
142
- # git config user.email [email protected]
143
- # git pull
144
- # git add .
145
- # git commit -m "New content from https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}"
146
- # git push https://${{ secrets.VERCEL_GITHUB_TOKEN }}@github.com/elastic/${{ env.PREBUILD }}
114
+ - name : Tidy before Vercel CLI run
115
+ if : github.event.pull_request.merged != true && github.event.pull_request.closed != true
116
+ shell : bash
117
+ run : |
118
+ mkdir ${{ github.workspace }}/build/
119
+ mv ${{ github.workspace }}/${{ env.PREBUILD }} ${{ github.workspace }}/build/
120
+ mv ${{ github.workspace }}/${{ env.SITE_REPO }} ${{ github.workspace }}/build/
121
+
122
+ - name : Generate preview
123
+ if : github.event.pull_request.merged != true && github.event.pull_request.closed != true
124
+ id : vercel-deploy
125
+
126
+ continue-on-error : false
127
+ with :
128
+ vercel-token : ${{ secrets.VERCEL_TOKEN }} # Required
129
+ vercel-org-id : ${{ secrets.VERCEL_ORG_ID }} # Required
130
+ vercel-project-id : ${{ secrets.VERCEL_PROJECT_ID_STAGING_PREVIEW_DOCS }} # Required
131
+ vercel-project-name : co-preview-docs
132
+ working-directory : ${{ github.workspace }}/build/
133
+ github-token : ${{ secrets.VERCEL_GITHUB_TOKEN }} # Optional
134
+ github-comment : true # Otherwise need github-token (VERCEL_GITHUB_TOKEN)
135
+
136
+ - name : Portal for deploy
137
+ if : github.event.pull_request.merged == true && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch
138
+ shell : bash
139
+ run : |
140
+ cd ${{ github.workspace }}/${{ env.PREBUILD }}
141
+ git config user.name elasticdocs
142
+ git config user.email [email protected]
143
+ git pull
144
+ git add .
145
+ git commit -m "New content from https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}"
146
+ git push https://${{ secrets.VERCEL_GITHUB_TOKEN }}@github.com/elastic/${{ env.PREBUILD }}
0 commit comments