Skip to content

Commit af8a5a0

Browse files
recrwplayNataliaIvakina
authored andcommitted
Update deploy-surge for v2 (neo4j#2632)
1 parent b1b5af7 commit af8a5a0

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/docs-deploy-surge.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- completed
1818

1919
jobs:
20-
publish-docs:
20+
deploy-docs:
2121
# Uncomment this if statement to deploy only when the PR builds cleanly
2222
# if: github.event.workflow_run.conclusion == 'success'
2323

@@ -63,11 +63,6 @@ jobs:
6363
- id: unzip-docs
6464
run: unzip docs.zip
6565

66-
- id: get-top-dir
67-
run: |
68-
root=$(ls -d */index.html | sed -r 's/(.*)\/index\.html/\1/')
69-
echo "top-dir=$root" >> $GITHUB_OUTPUT
70-
7166
- id: unzip-changelog
7267
if: ${{ hashFiles('changelog.zip') != '' }}
7368
run: unzip changelog.zip
@@ -97,13 +92,13 @@ jobs:
9792
SITE_DIR: ${{ steps.get-top-dir.outputs.top-dir }}
9893
run: |
9994
npm install -g surge
100-
surge ./$SITE_DIR $DEPLOY_URL --token "$SURGE_TOKEN"
95+
surge . $DEPLOY_URL --token "$SURGE_TOKEN"
10196
10297
# If the PR artifacts include a changelog file, add it to the PR as a comment
10398
# The changelog contains links to new and changed files in the deployed docs
10499
- name: Comment on PR (changelog)
105100
if: ${{ hashFiles('changelog') != '' }}
106-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 #v2.9.0
101+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 #v2
107102
with:
108103
number: ${{ steps.get-deploy-id.outputs.deploy-id }}
109104
recreate: true
@@ -116,7 +111,7 @@ jobs:
116111
if: ${{ hashFiles('changelog') == '' }}
117112
env:
118113
DEPLOY_URL: ${{ steps.get-deploy-url.outputs.deploy-url }}
119-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 #v2.9.0
114+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 #v2
120115
with:
121116
number: ${{ steps.get-deploy-id.outputs.deploy-id }}
122117
header: docs-pr-changes

0 commit comments

Comments
 (0)