Skip to content

fix: github uploadAsset #224

fix: github uploadAsset

fix: github uploadAsset #224

Workflow file for this run

name: deploy
on:
workflow_dispatch:
push:
branches: ['main']
paths-ignore:
- 'README.md'
permissions:
id-token: write
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: latest
- uses: pnpm/action-setup@v4
- run: pnpm install
- run: pnpm exec tsx ./scripts/updateVersion.ts
- run: pnpm run build:mirror
- run: pnpm publish --no-git-checks
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=gkd-inspect
- uses: nwtgck/actions-netlify@v3
with:
publish-dir: ./dist
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Deploy from GitHub Actions'
enable-pull-request-comment: false
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}