Skip to content

Commit

Permalink
Fix github pages deployment (0xPolygonZero#616)
Browse files Browse the repository at this point in the history
* Fix deployment

* TMP: For testing only

* Tweak

* Revert "TMP: For testing only"

This reverts commit 287febd.

* Update labeler
  • Loading branch information
Nashtare authored Sep 10, 2024
1 parent f5fd150 commit bfdc6c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
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

0 comments on commit bfdc6c3

Please sign in to comment.