From c6965b8f1d2bf2c699e9818ec5cf5838ad081624 Mon Sep 17 00:00:00 2001 From: habib Date: Thu, 29 Jun 2023 11:00:43 +0100 Subject: [PATCH] DOC: Adjusted Github actions to deploy mkdocs site --- .github/workflows/publish.yml | 34 ++++++++++++++++------------------ README.md | 2 +- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 145feb8e6..4a9911673 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 \ No newline at end of file + - 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 diff --git a/README.md b/README.md index 27cd79595..180f24d6d 100644 --- a/README.md +++ b/README.md @@ -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.