File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments