Skip to content

Commit

Permalink
ci: fix docs generation, fixes #132 #115 (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: Soner Sayakci <[email protected]>
  • Loading branch information
shyim authored Feb 28, 2023
1 parent 849734d commit 753c3f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ on:
jobs:
docs-update:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write

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

steps:
- name: Checkout
Expand All @@ -30,9 +37,12 @@ jobs:

- name: Generate
run: composer run apigen

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Upload GitHub Pages artifact
uses: actions/upload-pages[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
path: 'docs'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
],
"apigen": [
"rm -f apigen",
"curl -L https://github.com/ApiGen/ApiGen/releases/download/v7.0.0-alpha.3/apigen.phar -o apigen",
"curl -L https://github.com/ApiGen/ApiGen/releases/download/v7.0.0-alpha.4/apigen.phar -o apigen",
"chmod +x apigen",
"./apigen src --output docs",
"rm -f apigen"
Expand Down

0 comments on commit 753c3f9

Please sign in to comment.