File tree 2 files changed +50
-0
lines changed
2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build :
10
+ name : Build Docusaurus
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
16
+ - uses : actions/setup-node@v4
17
+ with :
18
+ node-version : 18
19
+ cache : npm
20
+
21
+ - name : Install dependencies
22
+ run : npm ci
23
+ - name : Build website
24
+ run : npm run build
25
+
26
+ - name : Upload Build Artifact
27
+ uses : actions/upload-pages-artifact@v3
28
+ with :
29
+ path : build
30
+
31
+ deploy :
32
+ name : Deploy to GitHub Pages
33
+ needs : build
34
+
35
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
36
+ permissions :
37
+ pages : write # to deploy to Pages
38
+ id-token : write # to verify the deployment originates from an appropriate source
39
+
40
+ # Deploy to the github-pages environment
41
+ environment :
42
+ name : github-pages
43
+ url : ${{ steps.deployment.outputs.page_url }}
44
+
45
+ runs-on : ubuntu-latest
46
+ steps :
47
+ - name : Deploy to GitHub Pages
48
+ id : deployment
49
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const config = {
17
17
// If you aren't using GitHub pages, you don't need these.
18
18
organizationName : 'mew-lang' , // Usually your GitHub org/user name.
19
19
projectName : 'mew' , // Usually your repo name.
20
+ trailingSlash : false ,
20
21
21
22
// Even if you don't use internalization, you can use this field to set useful
22
23
// metadata like html lang. For example, if your site is Chinese, you may want
You can’t perform that action at this time.
0 commit comments