Skip to content

Update docs.yml

Update docs.yml #9

Workflow file for this run

name: 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:
docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- name: Set up Pages
uses: actions/[email protected]
- name: Set up Swift
uses: swift-actions/[email protected]
with:
swift-version: '6.0.0'
- name: Generate Docs
run: |
swift package --allow-writing-to-directory ./docs \
generate-documentation --product "Wallpaper_Player_Documentation" \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path "wallpaper-player-mac" \
--output-path ./docs
- name: Upload artifact
uses: actions/[email protected]
with:
path: ./docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: docs
steps:
- name: Deploy Docs
uses: actions/[email protected]