Skip to content

Commit 3058157

Browse files
committed
Add build and release workflow to deploy to GitHub Pages
1 parent 84c79a9 commit 3058157

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 20
22+
- run: npm install
23+
- run: npm run build
24+
- uses: actions/upload-pages-artifact@v3
25+
with:
26+
path: "build"
27+
- name: Deploy to GitHub Pages
28+
uses: actions/deploy-pages@v4

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1+
# Docs
12

2-
- Docusaurus tutorial
3-
https://tutorial.docusaurus.io/docs/intro
3+
https://docs.tangible.one

0 commit comments

Comments
 (0)