@@ -31,12 +31,12 @@ jobs:
3131 lint :
3232 runs-on : ubuntu-latest
3333 steps :
34- - uses : actions/checkout@v6
34+ - uses : actions/checkout@v7
3535 - uses : actions/setup-python@v6
3636 with :
3737 python-version : " 3.14"
3838 - run : pip install pre-commit packaging
39- - uses : actions/cache@v5
39+ - uses : actions/cache@v6
4040 with :
4141 path : ~/.cache/pre-commit
4242 key : pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
4848 build : ${{ steps.matrix.outputs.build }}
4949 manifest : ${{ steps.matrix.outputs.manifest }}
5050 steps :
51- - uses : actions/checkout@v6
51+ - uses : actions/checkout@v7
5252 - id : matrix
5353 run : |
5454 echo "build=$(jq -c '.build' docker-images/github-actions-matrix.json)" >> "$GITHUB_OUTPUT"
6363 matrix :
6464 include : ${{ fromJson(needs.generate-matrix.outputs.build) }}
6565 steps :
66- - uses : actions/checkout@v6
66+ - uses : actions/checkout@v7
6767 - uses : docker/setup-buildx-action@v4
6868 - uses : docker/login-action@v4
6969 if : github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
@@ -163,18 +163,11 @@ jobs:
163163 docker buildx imagetools create -t "${tag}" ${GHCR_SOURCES}
164164 done
165165
166- deploy-docs :
167- if : github.event_name != 'pull_request'
166+ build-docs :
168167 needs : [lint]
169168 runs-on : ubuntu-latest
170- permissions :
171- pages : write
172- id-token : write
173- environment :
174- name : github-pages
175- url : ${{ steps.deployment.outputs.page_url }}
176169 steps :
177- - uses : actions/checkout@v6
170+ - uses : actions/checkout@v7
178171 - name : Sync README and CONTRIBUTING to docs
179172 run : |
180173 mkdir -p docs
@@ -188,6 +181,18 @@ jobs:
188181 source : ./docs
189182 destination : ./_site
190183 - uses : actions/upload-pages-artifact@v5
184+
185+ deploy-docs :
186+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
187+ needs : [build-docs]
188+ runs-on : ubuntu-latest
189+ permissions :
190+ pages : write
191+ id-token : write
192+ environment :
193+ name : github-pages
194+ url : ${{ steps.deployment.outputs.page_url }}
195+ steps :
191196 - name : Deploy to GitHub Pages
192197 id : deployment
193198 uses : actions/deploy-pages@v5
0 commit comments