Skip to content

try to fix docc generation #12

try to fix docc generation

try to fix docc generation #12

Workflow file for this run

name: DocC Runner
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
# A single job that builds and deploys the DocC documentation
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
container:
image: swift:6.2-noble
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install Swift SDK dependencies
run: |
apt-get -y update
apt-get install -y libssl-dev make
- name: Build DocC
run: |
make generate-docs
echo "<script>window.location.href += \"/documentation/bedrockservice\"</script>" > docs/index.html;
- name: Sanity Check
run: |
echo "Checking for required static assets..."
find ./docs -name "css" -o -name "js" -o -name "favicon*" | head -10
ls -la ./docs/
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: 'docs'
- id: deployment
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4