Building AI agents, atomically
Restructure GitHub Pages workflow to separate build and deploy stages
KennyVaneetvelded15bbc23ab43
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex 0833418..ac3cadd 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -12,6 +12,7 @@ permissions:contents: readpages: writeid-token: write+ actions: read # Add this to allow reading artifacts# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.@@ -20,10 +21,7 @@ concurrency:cancel-in-progress: falsejobs:- deploy:- environment:- name: github-pages- url: ${{ steps.deployment.outputs.page_url }}+ build:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4@@ -43,24 +41,23 @@ jobs:working-directory: docsrun: make html- - name: Setup Pages- uses: actions/configure-pages@v4-- - name: Prepare artifact- run: |- # Ensure we're in the root directory- cd ${{ github.workspace }}- # Debug the path- echo "Current directory: $(pwd)"- echo "HTML directory contents:"- ls -la docs/_build/html/-- - name: Upload artifact+ - name: Upload Pages artifactuses: actions/upload-pages-artifact@v3with:- path: ./docs/_build/html+ path: docs/_build/html+ name: github-pages+ deploy:+ needs: build+ permissions:+ pages: write+ id-token: write+ actions: read # Add this to allow reading artifacts+ environment:+ name: github-pages+ url: ${{ steps.deployment.outputs.page_url }}+ runs-on: ubuntu-latest+ steps:- name: Deploy to GitHub Pages+ id: deploymentuses: actions/deploy-pages@v3- with:- token: ${{ github.token }}