Skip to content

Commit

Permalink
feat(website): introduce Poku's website (#20)
Browse files Browse the repository at this point in the history
* chore(website): introduce Poku's website

* chore: improve description and documentation

* chore: create .gitattributes

* ci: fix lint conflict
  • Loading branch information
wellwelwel authored Feb 22, 2024
1 parent d19302d commit 172f081
Show file tree
Hide file tree
Showing 64 changed files with 20,145 additions and 474 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/lib
/ci
/CHANGELOG.md
/website
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
website/* linguist-vendored
2 changes: 1 addition & 1 deletion .github/assets/readme/poku.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 'GitHub Pages'
on:
push:
branches:
- main
paths:
- 'website/**'
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Actions - Checkout
uses: actions/checkout@v4

- name: Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Cache Dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-

- name: Installing Dependencies
run: cd website && npm ci

- name: Checking Types
run: cd website && npm run typecheck

- name: Run Unit Tests
run: cd website && npm run test:unit

- name: Building Site
run: cd website && npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/build
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/lib
/ci
/CHANGELOG.md
/website
Loading

0 comments on commit 172f081

Please sign in to comment.