Skip to content

Commit 1490669

Browse files
committed
Move docs deployment to publishing job
1 parent a595a4c commit 1490669

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,10 @@ jobs:
3131
npm install
3232
npm run lint
3333
npm run format:check
34-
35-
docs:
36-
needs: checks
37-
runs-on: ubuntu-latest
38-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
39-
permissions:
40-
pages: write # to deploy to Pages
41-
id-token: write # to verify the deployment originates from an appropriate source
42-
steps:
43-
- uses: actions/checkout@v4
44-
- uses: actions/setup-node@v3
45-
with:
46-
node-version: '18.x'
47-
registry-url: 'https://registry.npmjs.org'
48-
- run: npm install
49-
- run: npm run docs
50-
- name: "Upload docs as pages artifact"
51-
uses: actions/upload-pages-artifact@v3
52-
with:
53-
path: ./docs
54-
- name: "Deploy the uploaded pages artifact"
55-
uses: actions/deploy-pages@v4
34+
npm run docs
5635
5736
tests:
58-
needs: docs
37+
needs: checks
5938
runs-on: ubuntu-latest
6039
strategy:
6140
fail-fast: false

0 commit comments

Comments
 (0)