Skip to content

Commit d30d36c

Browse files
committed
update docs pipeline
1 parent e478f2b commit d30d36c

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,24 @@ name: docs
33
on:
44
push:
55
branches:
6-
- docs
76
- master
7+
permissions:
8+
contents: write
89

910
jobs:
1011
build-and-deploy:
1112
runs-on: ubuntu-latest
1213
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2.3.1
15-
with:
16-
persist-credentials: false
14+
- name: Checkout 🛎️
15+
uses: actions/checkout@v4
1716

18-
- name: Install and Build
17+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
1918
run: |
2019
yarn
21-
yarn build
20+
yarn build
2221
working-directory: website/
2322

24-
- name: Deploy
25-
uses: JamesIves/github-pages-deploy-action@3.7.1
23+
- name: Deploy 🚀
24+
uses: JamesIves/github-pages-deploy-action@v4
2625
with:
27-
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
28-
BRANCH: gh-pages
29-
FOLDER: website/build
30-
CLEAN: true
26+
folder: website/build # The folder the action should deploy.

0 commit comments

Comments
 (0)