1+ # Copyright 2025 The Ground Authors.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # https://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
115# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2- name : Deploy Jekyll with GitHub Pages dependencies preinstalled
16+ name : Deploy GitHub Pages
317
418on :
519 # Runs on pushes targeting the default branch
620 push :
721 branches : ["master"]
8-
9- # Allows you to run this workflow manually from the Actions tab
10- workflow_dispatch :
11-
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
22+
1323permissions :
1424 contents : read
1525 pages : write
1626 id-token : write
1727
18- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20- concurrency :
21- group : " pages"
22- cancel-in-progress : false
23-
2428jobs :
25- # Build job
2629 build :
2730 runs-on : ubuntu-latest
2831 steps :
2932 - name : Checkout
3033 uses : actions/checkout@v4
3134 - name : Setup Pages
3235 uses : actions/configure-pages@v5
33- - name : Build with Jekyll
36+ - name : Build
3437 uses : actions/jekyll-build-pages@v1
3538 with :
36- source : ./docs
37- destination : ./_site
39+ source : " ./docs"
3840 - name : Upload artifact
3941 uses : actions/upload-pages-artifact@v3
40-
41- # Deployment job
4242 deploy :
43- environment :
44- name : github-pages
45- url : ${{ steps.deployment.outputs.page_url }}
4643 runs-on : ubuntu-latest
4744 needs : build
4845 steps :
4946 - name : Deploy to GitHub Pages
5047 id : deployment
51- uses : actions/upload-pages-artifact@v3
52- with :
53- path : ./_site
48+ uses : actions/deploy-pages@v4
49+ environment :
50+ name : github-pages
51+ url : ${{ steps.deployment.outputs.page_url }}
0 commit comments