Release Documentation #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: Release Documentation | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
jobs: | ||
docs: | ||
name: build documentation and release | ||
runs-on: macos-latest | ||
env: | ||
GITHUB_ACTOR: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Install SSH Key | ||
uses: shimataro/[email protected] | ||
with: | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
known_hosts: github.com | ||
- name: Adding Known Hosts | ||
run: ssh-keyscan -H github.com >> ~/.ssh/known_hosts | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.0 | ||
bundler-cache: true | ||
- name: Install Jazzy | ||
run: sudo gem install jazzy | ||
- name: ABC Install | ||
uses: lyricwulf/abc@v1 | ||
with: | ||
macos: sourcekitten | ||
- name: Build Docs | ||
run: xcodebuild docbuild -scheme AtalaPrismSDK -destination "platform=macOS" -derivedDataPath ./doccBuild OTHER_DOCC_FLAGS="--transform-for-static-hosting --output-path ./docc --hosting-base-path '/atalaprismsdk'" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: ./docc | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build-docs | ||
Check failure on line 66 in .github/workflows/releaseDocumentation.yml GitHub Actions / Release DocumentationInvalid workflow file
|
||
steps: | ||
- name: Deploy Docs | ||
uses: actions/deploy-pages@v1 |