Skip to content

Commit

Permalink
Switch to GH Actions pages deployment setup (#265)
Browse files Browse the repository at this point in the history
Simple update of the pages deployment actions
  • Loading branch information
wilwade authored Dec 6, 2023
1 parent 0487a26 commit cfde3be
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cfde3be

Please sign in to comment.