Skip to content

Commit ee31ee0

Browse files
authored
Merge pull request #3144 from adumesny/master
fix sync-docs workflow to work on adumesny/gridstack.js fork
2 parents 224ea14 + 304ffb1 commit ee31ee0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/sync-docs.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
sync-docs:
1414
runs-on: ubuntu-latest
15-
if: github.repository == 'gridstack/gridstack.js'
15+
if: github.repository == 'adumesny/gridstack.js'
1616

1717
steps:
1818
- name: Checkout master branch
@@ -53,19 +53,17 @@ jobs:
5353
run: |
5454
echo "Syncing main library documentation..."
5555
56-
# Remove existing docs directory if it exists
57-
if [ -d "docs/html" ]; then
58-
rm -rf docs/html
56+
# Remove existing doc/html directory if it exists
57+
if [ -d "doc/html" ]; then
58+
rm -rf doc/html
5959
fi
6060
6161
# Extract docs from master branch using git archive
62-
mkdir -p docs
62+
mkdir -p doc
6363
git archive master doc/html | tar -xf -
64-
mv doc/html docs/html
65-
rm -rf doc
6664
6765
# Add changes
68-
git add docs/html
66+
git add doc/html
6967
7068
- name: Sync Angular documentation
7169
if: steps.check-docs.outputs.angular_docs == 'true'

0 commit comments

Comments
 (0)