From d2ffff0ab2bf241c9052c43dcb5dd50576720ba9 Mon Sep 17 00:00:00 2001 From: Mathew Polzin Date: Thu, 3 Oct 2024 11:54:15 -0500 Subject: [PATCH] use Swift 5.10 to build docs --- .github/workflows/documentation.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ab044c416..b3428a2e1 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -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 @@ -23,7 +24,19 @@ jobs: --transform-for-static-hosting \ --hosting-base-path OpenAPIKit \ --target OpenAPIKit + - uses: actions/cache/save@v4 + with: + path: ./gh-pages + key: ${{ github.run_number }}-pages + deploy: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/cache/restore@v4 + with: + path: ./gh-pages + key: ${{ github.run_number }}-pages - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4.5.0 with: