File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Docusaurus to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main # Change to your default branch
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v3
14+
15+ - name : Set up Node.js
16+ uses : actions/setup-node@v3
17+ with :
18+ node-version : 20 # Use the Node.js version specified in your project
19+
20+ - name : Install dependencies
21+ run : npm install
22+ working-directory : ./contributor-beginner # Change to your subfolder
23+
24+ - name : Build Docusaurus
25+ run : npm run build
26+ working-directory : ./contributor-beginner # Change to your subfolder
27+
28+ - name : Deploy to GitHub Pages
29+ uses : peaceiris/actions-gh-pages@v3
30+ with :
31+ github_token : ${{ secrets.GITHUB_TOKEN }}
32+ publish_dir : ./contributor-beginner/build # Path to the build folder
Original file line number Diff line number Diff line change @@ -10,10 +10,16 @@ const config: Config = {
1010 favicon : 'img/favicon.ico' ,
1111
1212 // Set the production url of your site here
13+ < docusaurus - project
14+ url : 'https://intersectMBO.github.io' ,
15+ // Set the /<baseUrl>/ pathname under which your site is served
16+ // For GitHub pages deployment, it is often '/<projectName>/'
17+ baseUrl : '/developer-experience/contributor-beginner/' ,
1318 url : 'https://intersectmbo.github.io/developer-experience/' ,
1419 // Set the /<baseUrl>/ pathname under which your site is served
1520 // For GitHub pages deployment, it is often '/<projectName>/'
1621 baseUrl : '/developer-experience/' ,
22+ > main
1723
1824 // GitHub pages deployment config.
1925 // If you aren't using GitHub pages, you don't need these.
You can’t perform that action at this time.
0 commit comments