Skip to content

Commit

Permalink
Update documentation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed Oct 23, 2024
1 parent 2f53b08 commit 6d79f53
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,44 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Prepare repository (on push)
if: ${{ github.event_name == 'push' }}
run: |
git fetch origin ${{ github.ref_name }}:refs/remotes/origin/${{ github.ref_name }} --tags --force
git remote set-head origin -a
git checkout ${{ github.ref_name }}
git pull --force
- name: Prepare repository (on release)
if: ${{ github.event_name == 'release' }}
run: |
git fetch origin master:refs/remotes/origin/master --tags --force
git remote set-head origin -a
git checkout ${{ github.ref_name }}
git pull --force
- name: Prepare repository (on workflow_dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
git fetch origin ${{ github.ref_name }}:refs/remotes/origin/${{ github.ref_name }} --tags --force
git remote set-head origin -a
git checkout ${{ github.ref_name }}
git pull --force
- name: Generate docs
run: |
cd docs
poxy --verbose
poxy --verbose --git-tags --min-version v2.0.0 --no-squash-patches
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/html
destination_dir: ${{ github.ref_name }}
keep_files: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: Update documentation (GitHub actions deploy)
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

_Released 2024-xx-xx_

* Fix formatting options of user-defined types sometimes being ignored
* Fix formatting options of user-defined types sometimes being ignored
* Update documentation to have a version-dropdown

## 3.0.1

Expand Down

0 comments on commit 6d79f53

Please sign in to comment.