diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ab044c416..95c64f5e0 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: