Skip to content

Commit 9c3a09d

Browse files
authored
Rewrite publish action (#2156)
1 parent 2723ca6 commit 9c3a09d

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/jekyll-gh-pages.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
15+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
16+
name: Deploy GitHub Pages
17+
18+
on:
19+
# Runs on pushes targeting the default branch
20+
push:
21+
branches: ["master"]
22+
23+
permissions:
24+
contents: read
25+
pages: write
26+
id-token: write
27+
28+
jobs:
29+
build:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5
36+
- name: Build
37+
uses: actions/jekyll-build-pages@v1
38+
with:
39+
source: "./docs"
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
deploy:
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)