Skip to content

ValidationKit 1.1.0 #27

ValidationKit 1.1.0

ValidationKit 1.1.0 #27

Workflow file for this run

name: Deploy documentation
on:
push:
branches: ["main"]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build DocC documentation
run: |
xcodebuild docbuild \
-scheme ValidationKit \
-destination 'generic/platform=iOS' \
-derivedDataPath ../DerivedData
- name: Process Archive
run: |
mkdir _site
$(xcrun --find docc) process-archive \
transform-for-static-hosting ../DerivedData/Build/Products/Debug-iphoneos/ValidationKit.doccarchive \
--output-path _site \
--hosting-base-path ValidationKit
- name: Create Custom index.html
run: |
rm _site/index.html
cat > _site/index.html <<- EOM
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='https://q42.github.io/ValidationKit/documentation/validationkit/'" />
</head>
<body>
<p>Please follow <a href="https://q42.github.io/ValidationKit/documentation/validationkit/">this link</a>.</p>
</body>
</html>
EOM
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2