From b9bdf1d3582732b953815b2371129bb516658704 Mon Sep 17 00:00:00 2001 From: karurochari Date: Fri, 3 Jan 2025 09:19:42 +0000 Subject: [PATCH] Fix docs --- .github/workflows/docs.yml | 17 ++++++++++++----- .github/workflows/release.yml | 1 + 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 428f68c7..e1dad30f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,9 +31,16 @@ jobs: doxygen mkdocs build bun install -g gh-pages + touch package.json #Needed, as I am not using one in this repo. + #- name: Deploy + # run: | + # git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git + # gh-pages -d dist/website -e . -u "github-actions-bot " + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Deploy - run: | - git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - gh-pages -d dist/website -e . -u "github-actions-bot " - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist/website + destination_dir: ${{ inputs.subdir }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a3f7f0d..fba10f03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,6 +70,7 @@ jobs: docs-latest: uses: ./.github/workflows/docs.yml if: ${{ startsWith(github.ref, 'refs/tags/v') }} + needs: [docs] with: subdir: latest permissions: