Skip to content

Commit

Permalink
Add github pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Jul 30, 2024
1 parent 6a03736 commit 0c11219
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"tabWidth": 2,
"useTabs": false,
"printWidth": 80,
"trailingComma": "all",
"bracketSameLine": true
}
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
workflow_dispatch:
push:
branches: main

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

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: ./build
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 0c11219

Please sign in to comment.