Skip to content

Commit

Permalink
ci: publish doc step fixed (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosschroh committed Jul 25, 2023
1 parent fdf6c33 commit 9dab998
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 98 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:

- name: Install Dependencies
run: |
poetry install
poetry install --only dev
- name: Build docs
run: |
poetry run mkdocs build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1.3.0
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./site/
13 changes: 7 additions & 6 deletions .github/workflows/docs-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ jobs:

- name: Install Dependencies
run: |
poetry install
poetry install --only dev
- name: Build docs
run: |
poetry run mkdocs build
- name: Push doc to Github Page
uses: peaceiris/actions-gh-pages@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./site
tag_message: 'Deployment ${{ github.ref_name }}'
Loading

0 comments on commit 9dab998

Please sign in to comment.