Skip to content

Commit 82f3355

Browse files
authored
Merge pull request IntersectMBO#44 from SuganyaAK/docusaurus-project
Docusaurus project : update to deployment files
2 parents 835bc7f + 178cfab commit 82f3355

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

contributor-beginner/docusaurus.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)