Skip to content

Commit

Permalink
Merge pull request #5 from alexanderjordanbaker/GHPagesDocGeneration
Browse files Browse the repository at this point in the history
Adding auto-publishing documentation to github pages
  • Loading branch information
alexanderjordanbaker committed Aug 19, 2023
2 parents f88c928 + ad19c08 commit 6a84e15
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci-release-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Doc Builder
on:
release:
types: [published]
permissions:
pages: write
id-token: write
jobs:
build:
name: Doc Builder
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Swift 5.8
uses: swift-actions/setup-swift@v1
with:
swift-version: 5.8
- name: Swift build
run: swift build
- name: Build docs
run: swift package --allow-writing-to-directory docs generate-documentation --target AppStoreServerLibrary --product AppStoreServerLibrary --disable-indexing --hosting-base-path app-store-server-library-swift --output-path docs
- name: Upload docs
uses: actions/upload-pages-artifact@v2
with:
path: docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy docs
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 6a84e15

Please sign in to comment.