commit: 54144966a34bcc3436a14d0f90546e18d44d6acd Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Tue Oct 4 09:41:21 2022 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Tue Oct 4 09:41:21 2022 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=54144966
ci: use deploy using github actions instead of branch Using a branch is broken when using the mirroring. So use straight deployment using github actions. Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> .github/workflows/doc.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index f2f159ee..a6552fec 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -3,9 +3,19 @@ name: doc on: push: branches: [master] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true jobs: - build-and-deploy: + build: runs-on: ubuntu-latest steps: - name: Checkout code @@ -29,10 +39,19 @@ jobs: # notify github this isn't a jekyll site touch build/sphinx/html/.nojekyll - - name: Deploy docs to gh-pages - uses: JamesIves/github-pages-deploy-action@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages - folder: build/sphinx/html - single-commit: true + path: build/sphinx/html + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1