Skip to content

Commit

Permalink
DOC: Adjusted Github actions to deploy mkdocs site
Browse files Browse the repository at this point in the history
  • Loading branch information
habiblawal1 committed Jun 29, 2023
1 parent a0cf80f commit c6965b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@ name: Publish to GitHub Pages
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Antora
run: npm i antora
- name: Generate Site
run: |
cd docs
npx antora antora-playbook.yml
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/site
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ Testify is an open-source generic framework used for the testing of Object Reque

## Docs

The documenation for Testify can be found at https://testibus-team4.github.io/yoko . There you can find out more information about the benefits of Testify and how to use it.
The documenation for Testify can be found at https://openliberty.github.io/yoko . There you can find out more information about the benefits of Testify and how to use it.

0 comments on commit c6965b8

Please sign in to comment.