File tree Expand file tree Collapse file tree 5 files changed +83
-5
lines changed
Expand file tree Collapse file tree 5 files changed +83
-5
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+ # Review gh actions docs if you want to further define triggers, paths, etc
8+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+ jobs :
11+ build :
12+ name : Build Docusaurus
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 18
21+ cache : npm
22+
23+ - name : Install dependencies
24+ run : npm ci
25+ - name : Build website
26+ run : npm run build
27+
28+ - name : Upload Build Artifact
29+ uses : actions/upload-pages-artifact@v3
30+ with :
31+ path : build
32+
33+ deploy :
34+ name : Deploy to GitHub Pages
35+ needs : build
36+
37+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38+ permissions :
39+ pages : write # to deploy to Pages
40+ id-token : write # to verify the deployment originates from an appropriate source
41+
42+ # Deploy to the github-pages environment
43+ environment :
44+ name : github-pages
45+ url : ${{ steps.deployment.outputs.page_url }}
46+
47+ runs-on : ubuntu-latest
48+ steps :
49+ - name : Deploy to GitHub Pages
50+ id : deployment
51+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ name : Test deployment
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ # Review gh actions docs if you want to further define triggers, paths, etc
8+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+ jobs :
11+ test-deploy :
12+ name : Test deployment
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 18
21+ cache : npm
22+
23+ - name : Install dependencies
24+ run : npm ci
25+ - name : Test build website
26+ run : npm run build
Original file line number Diff line number Diff line change 22 name : Marco Farina
33 title : Il Prof.
44 url : https://github.com/marcofarina
5- image_url : https://github.com/yangshun .png
5+ image_url : https://github.com/marcofarina .png
66 page : false
77 socials :
8- nostr : marcofarina@nos.social
98 github : marcofarina
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ const config: Config = {
1515
1616 // GitHub pages deployment config.
1717 // If you aren't using GitHub pages, you don't need these.
18- organizationName : 'marcofarina' , // Usually your GitHub org/user name .
18+ organizationName : 'marcofarina' , // Usually your GitHub org/username .
1919 projectName : 'python-doesnt-byte' , // Usually your repo name.
20+ deploymentBranch : 'gh-pages' ,
21+ trailingSlash : false ,
2022
2123 onBrokenLinks : 'throw' ,
2224 onBrokenMarkdownLinks : 'warn' ,
@@ -132,10 +134,10 @@ const config: Config = {
132134 {
133135 title : 'More' ,
134136 items : [
135- {
137+ /* {
136138 label: 'Blog',
137139 to: '/blog',
138- } ,
140+ },*/
139141 {
140142 label : 'GitHub' ,
141143 href : 'https://github.com/marcofarina/' ,
You can’t perform that action at this time.
0 commit comments