Skip to content

Commit 57b27e0

Browse files
Garth PickellCopilot
andcommitted
Add GitHub Pages deployment workflow
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 27ab5b7 commit 57b27e0

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
17+
18+
jobs:
19+
deploy:
20+
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
25+
steps:
26+
- name: Check out repository
27+
uses: actions/checkout@v4
28+
29+
- name: Set up Pages
30+
uses: actions/configure-pages@v5
31+
32+
- name: Build site artifact from repository root
33+
shell: bash
34+
run: |
35+
rm -rf _site
36+
mkdir -p _site
37+
git checkout-index -a -f --prefix=_site/
38+
rm -rf _site/.github
39+
40+
- name: Upload Pages artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: _site
44+
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v4

.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)