mirror of
https://github.com/PrismarineJS/prismarine-web-client.git
synced 2025-08-28 21:28:44 -04:00
20 lines
500 B
YAML
20 lines
500 B
YAML
name: Deploy to GitHub pages
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
permissions: write-all
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@master
|
|
- name: Install pnpm
|
|
run: npm i -g pnpm
|
|
- run: pnpm install
|
|
- run: pnpm build
|
|
- uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./public
|
|
force_orphan: true
|