Skip to content

Commit 5ddcd62

Browse files
testing deploy workflow
1 parent 0847b86 commit 5ddcd62

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy Docusaurus website to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or your default branch
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: website
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # Required for docusaurus to push to gh-pages
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 18
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Build website
30+
run: npm run build
31+
32+
- name: Deploy to GitHub Pages
33+
env:
34+
GIT_USER: github-actions[bot]
35+
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}
36+
run: |
37+
npx docusaurus deploy

website/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const config = {
2323
url: 'https://ieeta-pt.github.io',
2424
// Set the /<baseUrl>/ pathname under which your site is served
2525
// For GitHub pages deployment, it is often '/<projectName>/'
26-
baseUrl: '/CoPipes/website/',
26+
baseUrl: '/CoPipes/',
2727

2828
// GitHub pages deployment config.
2929
// If you aren't using GitHub pages, you don't need these.

0 commit comments

Comments
 (0)