Skip to content

Commit ba843a5

Browse files
Cleanup
1 parent 4621c3d commit ba843a5

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

Diff for: .github/workflows/docs-elastic-staging-publish.yml

+35-35
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ jobs:
9393
with:
9494
node-version: '20'
9595

96-
- name: Checkout Versioning action
96+
- name: Checkout versioning action
9797
uses: actions/checkout@v4
9898
with:
9999
repository: elastic/workflows
100100
path: ./workflows
101101

102-
- name: Install Versioning action dependencies
102+
- name: Install versioning action dependencies
103103
run: npm install
104104
working-directory: ./workflows/.github/actions/version-content
105105

@@ -111,36 +111,36 @@ jobs:
111111
content-repo: ${{ github.repository }}
112112
base-ref: ${{ github.base_ref }}
113113

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-
# uses: elastic/[email protected]
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+
uses: elastic/[email protected]
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

Comments
 (0)