Skip to content

Commit

Permalink
ci: deploy docs w/ updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-k-alexandra committed Mar 15, 2024
1 parent fd0961f commit 16e5ec0
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,33 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: "pages"
group: pages
cancel-in-progress: true

jobs:
docs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- name: Set up Pages
uses: actions/configure-pages@v4
- name: Set up Swift
uses: fwal/setup-swift@v2
with:
swift-version: '5.9'
- name: Generate Docs
uses: fwcd/swift-docc-action@v1
with:
output: ./public
transform-for-static-hosting: 'true'
disable-indexing: 'true'
hosting-base-path: WMATA.swift
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
- uses: actions/checkout@v4
- name: Set up Pages
uses: actions/configure-pages@v4
- name: Set up Swift
uses: fwal/setup-swift@v2
with:
swift-version: '5.9'
- name: Generate Docs
uses: fwcd/swift-docc-action@v1
with:
target: MetroGTFS
output: ./public
transform-for-static-hosting: 'true'
disable-indexing: 'true'
hosting-base-path: WMATA.swift
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public

deploy:
environment:
Expand All @@ -49,5 +50,6 @@ jobs:
needs: docs

steps:
- name: Deploy Docs
uses: actions/deploy-pages@v4
- name: Deploy Docs
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 16e5ec0

Please sign in to comment.