diff --git a/.github/workflows/deploy-gh-pages.yaml b/.github/workflows/deploy-gh-pages.yaml index 40d1a015..fc587ddb 100644 --- a/.github/workflows/deploy-gh-pages.yaml +++ b/.github/workflows/deploy-gh-pages.yaml @@ -6,23 +6,35 @@ on: - '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9][0-9]' jobs: - deploy: - runs-on: ubuntu-20.04 - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + build: + runs-on: ubuntu-latest steps: - - name: Checkout 🛎️ - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v4 - name: Set up mdBook 📚 uses: ./.github/workflows/common/set-up-mdbook - - name: Build mdBook 📚 + - name: Setup Pages + id: pages + uses: actions/configure-pages@v4 + + - name: Build with mdBook run: mdbook build - - name: Deploy to GitHub Pages 🚀 - uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 with: - branch: gh-pages - folder: ./book/html + path: ./book/html + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v3