arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
ci: deploy docs via official github pages actions
Pau Escrich p4u@dabax.net
Fri, 27 Feb 2026 11:16:47 +0100
commit

5d5777d2be01b7463b789750c80e745592f61d4a

parent

aabe57e8194cbfd7ceab2d8301d8150c44b48b6a

1 files changed, 29 insertions(+), 9 deletions(-)

jump to
M .github/workflows/build-and-deploy.yml → .github/workflows/build-and-deploy.yml

@@ -3,12 +3,18 @@

on: push: branches: ["main"] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: "pages" + cancel-in-progress: true jobs: - build_and_deploy: + build: runs-on: ubuntu-latest - permissions: - contents: write steps: - name: Checkout repo

@@ -112,15 +118,29 @@ </body>

</html> EOF - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs - - name: Upload paper.md artifact uses: actions/upload-artifact@v4 with: name: paper-markdown path: docs/paper.md if-no-files-found: error + + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: docs + + deploy: + runs-on: ubuntu-latest + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4