Skip to content

Add LICENSE

Add LICENSE #5

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
gh-pages-deploy:
runs-on: ubuntu-latest
name: Build and Deploy to GitHub Pages
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: "^8.6.12"
- uses: actions/setup-node@v3
with:
node-version: "^v18.17.1"
cache: pnpm
- name: Install Dependencies
run:
pnpm install --frozen-lockfile
- name: ESLint
run:
npm run lint
- name: Vite Build
run:
npm run build -- --base /palia-clock
- name: Force-Push to gh-pages
shell: bash
run: |
export DEPLOY_JOB_SOURCE_COMMIT=$(git rev-parse --short HEAD)
cd dist
ln -s index.html 404.html
git init -b gh-pages
git config user.email "deploy@example.com"
git config user.name "GitHub Action Deploy"
git add -A
git commit -m "Automatic Deploy of $DEPLOY_JOB_SOURCE_COMMIT"
git push -f https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git gh-pages:gh-pages