Skip to content

feat: IsDocumentVisible #41

feat: IsDocumentVisible

feat: IsDocumentVisible #41

Workflow file for this run

name: Deploy Docs
on:
workflow_dispatch:
pull_request:
types: [closed]
branches: [main]
jobs:
deploy-production:
runs-on: macos-latest
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.head_ref == 'changesets-release/main')
permissions:
contents: read
deployments: write
name: Manual Docs Deployment
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build package & site
run: pnpm build
- name: Deploy to Cloudflare Pages
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: runed
directory: ./.svelte-kit/cloudflare
workingDirectory: sites/docs
deploymentName: Production
wranglerVersion: "" # uses the local version of wrangler