Skip to content

Test gh pages deployment #6

Test gh pages deployment

Test gh pages deployment #6

name: Publish New Release
on:
pull_request:
branches: [main]
jobs:
deploy-demo:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g pnpm
- run: pnpm i
- run: pnpm --prefix demo i
- run: pnpm --prefix demo i atomic-spinner@latest
- name: Set Github identity
run: |
git config user.email "[email protected]"
git config user.name "github-actions-bot"
- name: Deploy to Github Pages
run: |
pnpm build-demo
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d demo/build -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}