-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace vercel with github pages
- Loading branch information
Showing
32 changed files
with
1,382 additions
and
3,099 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Build and pages deploy | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- Lint and test | ||
types: | ||
- completed | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: 'pages-deploy' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-and-pages-deploy: | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
name: Build and pages deploy | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deploy.outputs.page_url }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Prepare | ||
uses: ./.github/actions/prepare | ||
|
||
- name: Build | ||
run: npm run build | ||
env: | ||
PUBLIC_BASE_PATH: /${{ github.event.repository.name }}/ | ||
|
||
- name: Setup pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: './build/client/' | ||
|
||
- name: Pages deploy | ||
id: deploy | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,3 @@ npm-debug.log | |
|
||
.cache/ | ||
build/ | ||
|
||
.vercel | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
import 'core-js/modules/es.array.to-reversed'; | ||
import 'core-js/modules/es.array.with'; | ||
import 'core-js/modules/web.immediate'; | ||
import { type TransferHandler, transferHandlers } from 'comlink'; | ||
|
||
import { Board, type BoardValue } from '~/lib/board'; | ||
|
||
const boardTransferHandler: TransferHandler<Board, BoardValue> = { | ||
canHandle(value) { | ||
return value instanceof Board; | ||
}, | ||
deserialize(value) { | ||
return Board.from(value); | ||
}, | ||
serialize(value) { | ||
return [value.valueOf(), []]; | ||
}, | ||
}; | ||
|
||
transferHandlers.set('Board', boardTransferHandler); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.