Skip to content

Commit

Permalink
Build docs on macos-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
vadymmarkov committed Feb 14, 2023
1 parent 565cbf5 commit 45c372f
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,32 @@ concurrency:
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Build docs
run: |
python ./Docs/build_docs.py --version ${{ github.ref_name }}
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './Docs/_site'
path: './Docs/static'

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
needs: build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
DebugLocal.xcconfig
ReleaseLocal.xcconfig
Docs/output
Docs/_site/sdk
Docs/_site/frameworks
Docs/static/sdk
Docs/static/frameworks

# Swift Package Manager
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
Expand Down
2 changes: 1 addition & 1 deletion Docs/build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

CWD_PATH = os.path.dirname(os.path.realpath(__file__))
OUTPUT_PATH = os.path.join(CWD_PATH, 'output')
SITE_PATH = os.path.join(CWD_PATH, '_site')
SITE_PATH = os.path.join(CWD_PATH, 'static')
HEADER_PATH = os.path.join(CWD_PATH, 'header.html')

### - CLASSES
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.

0 comments on commit 45c372f

Please sign in to comment.