Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix github pages deployment #616

Merged
merged 5 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,17 @@
- changed-files:
- any-glob-to-any-file: zero_bin/**

# Add 'specs' label to any changes within 'docs' folder.
# Add 'specs' label to any changes within 'docs' or `book` folder.
'specs':
- changed-files:
- any-glob-to-any-file: docs/**
- any-glob-to-any-file: ['docs/**', 'book/**']

# Add 'crate: common' label to any changes within 'common' folder.
'crate: common':
- changed-files:
- any-glob-to-any-file: common/**

# Add 'ci' label to any changes within '.github' folder.
'ci':
- changed-files:
- any-glob-to-any-file: .github/**
13 changes: 13 additions & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,25 @@ jobs:
- name: Build book
run: mdbook build book

- name: Upload built book
uses: actions/upload-artifact@v3
with:
name: built-mdbook
path: ./book/book

deploy:
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop')
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3

- name: Download built book
uses: actions/download-artifact@v3
with:
name: built-mdbook
path: ./book/book

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
Loading