Skip to content

chore(deps): bump actions/deploy-pages from 2.0.4 to 2.0.5 (#75) #21

chore(deps): bump actions/deploy-pages from 2.0.4 to 2.0.5 (#75)

chore(deps): bump actions/deploy-pages from 2.0.4 to 2.0.5 (#75) #21

Workflow file for this run

name: Publish Docs
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# 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:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# change to macos-latest once macos-13 becomes the latest
runs-on: macos-13
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
- name: Checkout 🛎️
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: swift-actions/setup-swift@f51889efb55dccf13be0ee727e3d6c89a096fb4c # v1.25.0
with:
swift-version: "5.8"
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Package documentation 🛠
run: |
export DOCC_JSON_PRETTYPRINT="YES"
swift package generate-documentation \
--target WMATAUI \
--include-extended-types \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path WMATAUI.swift
- name: Upload artifact 📜
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2.0.0
with:
# Upload docs directory
path: .build/plugins/Swift-DocC/outputs/WMATAUI.doccarchive
- name: Deploy to GitHub Pages 🐙
id: deployment
uses: actions/deploy-pages@de14547edc9944350dc0481aa5b7afb08e75f254 # v2.0.5