Skip to content

Commit 4d954d4

Browse files
authored
Update Netlify workflow for documentation deployment (ToolJet#15573)
2 parents 9e93225 + ed5b791 commit 4d954d4

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/docs-netlify.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,28 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Checkout code
16+
- name: Checkout documentation branch
1717
uses: actions/checkout@v4
18+
with:
19+
ref: documentation
1820

1921
- name: Setup Node.js
2022
uses: actions/setup-node@v4
2123
with:
2224
node-version: 18.18.2
2325

2426
- name: Install dependencies
25-
run: npm install
2627
working-directory: docs
28+
run: npm install
2729

2830
- name: Build the project
29-
run: GTM=${{ secrets.GTM }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} npm run build
3031
working-directory: docs
32+
run: |
33+
GTM=${{ secrets.GTM }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} npm run build
3134
3235
- name: Deploy to Netlify
33-
run: |
34-
npm install -g netlify-cli
35-
netlify deploy --prod --dir=docs/build --auth=$NETLIFY_AUTH_TOKEN --site=${{ secrets.NETLIFY_SITE_ID }}
3636
env:
3737
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
38+
run: |
39+
npm install -g netlify-cli
40+
netlify deploy --prod --dir=docs/build --site=${{ secrets.NETLIFY_SITE_ID }}

0 commit comments

Comments
 (0)