Skip to content

Commit

Permalink
Add github pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
lefelys committed May 4, 2024
1 parent 627d779 commit 26945bf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2

- uses: pnpm/action-setup@v2.0.1
with:
version: 8.15.5

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 21
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: apps/web/out
2 changes: 1 addition & 1 deletion packages/randomface-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"types": "./dist/randomface.d.ts",
"license": "MIT",
"dependencies": {
"randomface": "^0.1.0"
"randomface": "workspace:^"
}
}
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26945bf

Please sign in to comment.