Skip to content

Commit

Permalink
simplify publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
diversable committed Dec 22, 2023
1 parent 2ca795f commit f6c2931
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/publish_mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ concurrency:
cancel-in-progress: false

jobs:

# Build job
build:

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
env:
MDBOOK_VERSION: 0.4.36
Expand Down Expand Up @@ -54,13 +60,13 @@ jobs:
path: ./book

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
# 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 f6c2931

Please sign in to comment.