Skip to content

fix: guard import os for Linux in StubURLProtocol and URLSessionHTTPC… #11

fix: guard import os for Linux in StubURLProtocol and URLSessionHTTPC…

fix: guard import os for Linux in StubURLProtocol and URLSessionHTTPC… #11

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
# Copyright 2026 Atelier Socle SAS
# docc-deploy.yml — Deploy DocC documentation to GitHub Pages.
name: DocC
on:
push:
branches: [main]
workflow_dispatch:
permissions:
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
name: "Deploy DocC"
runs-on: macos-26
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_26.2.app
- name: Build Documentation
run: |
swift package --allow-writing-to-directory docs \
generate-documentation \
--target HLSKit \
--output-path docs \
--transform-for-static-hosting \
--hosting-base-path swift-hls-kit \
--disable-indexing
- name: Add root redirect
run: echo '<meta http-equiv="refresh" content="0; url=documentation/hlskit/" />' > docs/index.html
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4