Skip to content

Commit

Permalink
use Swift 5.10 to build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpolzin committed Oct 4, 2024
1 parent f80f2e3 commit 8d087f3
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: swift:5.10

steps:
- uses: actions/checkout@v4

- name: Build Docs
run: |
mkdir -p ./gh-pages
Expand All @@ -23,7 +24,23 @@ jobs:
--transform-for-static-hosting \
--hosting-base-path OpenAPIKit \
--target OpenAPIKit
- uses: actions/cache/save@v4
with:
path: gh-pages
key: gh-${{ github.run_number }}-pages
enableCrossOsArchive: true

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache/restore@v4
with:
path: gh-pages
key: gh-${{ github.run_number }}-pages
fail-on-cache-miss: true
enableCrossOsArchive: true
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
Expand Down

0 comments on commit 8d087f3

Please sign in to comment.