Skip to content

Add missing permissions #7

Add missing permissions

Add missing permissions #7

Workflow file for this run

name: Deploy Docs
on:
workflow_dispatch: {}
push:
branches:
- main
concurrency:
group: deploy-docs-${{ github.head_ref }}
cancel-in-progress: true
jobs:
deploy:
permissions:
contents: read
deployments: write
name: Deploy Documentation
runs-on: macos-13
steps:
- name: Checkout Package
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_$(cat .xcode-version).app
- name: Build documentation
run: swift package --allow-writing-to-directory ./docs generate-documentation --target SwiftyTailwind --output-path ./docs --transform-for-static-hosting --hosting-base-path / --disable-indexing
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: cc0237353f2f825680b0463629cd4a86
projectName: swiftytailwind-docs
directory: docs/
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'