Skip to content

Commit 59fa856

Browse files
committed
update workflow
1 parent b7ffbd5 commit 59fa856

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed

.github/workflows/docs-deploy.yaml

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ on:
1919
branches: [main, release-*]
2020
paths:
2121
- 'website/**'
22-
- '.github/workflows/**'
2322

2423
jobs:
25-
build:
26-
name: Build Docusaurus
24+
deploy:
2725
runs-on: ubuntu-latest
2826
defaults:
2927
run:
@@ -36,31 +34,18 @@ jobs:
3634
run: ./build_versioned_docs.sh
3735
- uses: actions/setup-node@v4
3836
with:
39-
node-version: 18
37+
node-version: 18
4038
- name: Install dependencies
4139
run: npm install
4240
- name: Build website
4341
run: npm run build -- --no-minify
44-
- name: Upload Build Artifact
45-
uses: actions/upload-pages-artifact@v3
42+
- uses: webfactory/[email protected]
4643
with:
47-
path: build
48-
deploy:
49-
name: Deploy to GitHub Pages
50-
needs: build
51-
52-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
53-
permissions:
54-
pages: write # to deploy to Pages
55-
id-token: write # to verify the deployment originates from an appropriate source
56-
57-
# Deploy to the github-pages environment
58-
environment:
59-
name: github-pages
60-
url: ${{ steps.deployment.outputs.page_url }}
61-
62-
runs-on: ubuntu-latest
63-
steps:
64-
- name: Deploy to GitHub Pages
65-
id: deployment
66-
uses: actions/deploy-pages@v4
44+
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
45+
- name: Deploy website
46+
env:
47+
USE_SSH: true
48+
run: |
49+
git config --global user.email "[email protected]"
50+
git config --global user.name "gh-actions"
51+
npm run deploy -- --skip-build

0 commit comments

Comments
 (0)