这是indexloc提供的服务,不要输入任何密码
Skip to content

Start game muted and deploy PR previews #1

Start game muted and deploy PR previews

Start game muted and deploy PR previews #1

name: Deploy PR Preview
on:
pull_request:
branches:
- main
permissions:
contents: write
jobs:
deploy:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- run: npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}