Skip to content

Commit

Permalink
ci: Correct paths and permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed May 6, 2024
1 parent a980bb5 commit b2d0c5d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ jobs:

docs:
uses: ./.github/workflows/step_docs.yml
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

test-unit:
needs: [test-lint]
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/step_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,29 @@ jobs:
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: yarn
cache-dependency-path: website/yarn.lock

- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive
run: |
cd website
yarn install --frozen-lockfile --non-interactive
- name: Build docs
run: yarn build
run: |
cd website
yarn build
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
- name: Upload docs artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
path: website/build

# Deployment job
deploy:
Expand Down

0 comments on commit b2d0c5d

Please sign in to comment.