Skip to content

Commit

Permalink
Add build and release workflow to deploy to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
eliot-akira committed Jan 22, 2025
1 parent 84c79a9 commit 3058157
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy

on:
push:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm install
- run: npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: "build"
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Docs

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

0 comments on commit 3058157

Please sign in to comment.