Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
akaDuality committed Dec 9, 2023
1 parent aa0c40f commit 9c39b6a
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Update Documentation

on:
push:
branches: ["main"]

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

env:
LANG: "en_US.UTF-8"
LANGUAGE: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
SCHEME: "AccessibilityDocumentation"
XCODE_VERSION: '~>14'
DERIVED_DATA_PATH: './DerivedData/'
DESTINATION: 'platform=iOS Simulator,name=iPhone 11'
HOSTING_BASE_PATH: 'AccessibilityDocumentation'

jobs:
update-docs:
runs-on: 'macos-latest'
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Pages
uses: actions/configure-pages@v2

- name: Build
run: |
swift package --allow-writing-to-directory ${{ env.DERIVED_DATA_PATH }} generate-documentation --target ${{ env.SCHEME }} --disable-indexing --transform-for-static-hosting --hosting-base-path '${{ env.HOSTING_BASE_PATH }}' --output-path ${{ env.DERIVED_DATA_PATH }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ${{ env.DERIVED_DATA_PATH }}

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 9c39b6a

Please sign in to comment.