Skip to content

Commit

Permalink
docs: fix typo in YAML workflow (2)
Browse files Browse the repository at this point in the history
Signed-off-by: VirtualTam <[email protected]>
  • Loading branch information
virtualtam committed Nov 24, 2024
1 parent ab40410 commit b9b8130
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,42 @@ on:
- v*
pull_request: {}

jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: jontze/action-mdbook@v3
with:
mdbook-version: "~0.4.36"
token: ${{secrets.GITHUB_TOKEN}}

- name: Generate documentation
run: make docs

- name: Upload documentation as an artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: './docs/book'

publish:
if: github.ref == 'refs/heads/main'
needs: generate

permissions:
pages: write
id-token: write

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

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: jontze/action-mdbook@v3
with:
mdbook-version: "~0.4.36"
token: ${{secrets.GITHUB_TOKEN}}

- name: Generate documentation
run: make docs

- name: Upload documentation as an artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: './docs/book'

publish:
if: github.ref == 'refs/heads/main'
needs: generate

permissions:
pages: write
id-token: write

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

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit b9b8130

Please sign in to comment.