Make script reusable #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docc Static Site Deployment | |
on: | |
push: | |
branches: ["main", "ajlb/docc-github-action"] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
deploy-docs: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: sersoft-gmbh/swifty-docs-action@v2 | |
with: | |
output: docs | |
use-xcodebuild: true | |
xcodebuild-scheme: MuxUploadSDK | |
xcodebuild-destination: generic/platform=iOS | |
transform-for-static-hosting: true | |
hosting-base-path: swift-upload-sdk | |
- name: Post Process Docc Archive | |
run: ./scripts/post-process-docc-archive-for-github-pages.sh swift-upload-sdk muxuploadsdk | |
- uses: actions/upload-pages-artifact@v1 | |
with: | |
path: docs | |
- uses: actions/[email protected] | |
id: deployment |