Skip to content

Commit 3b30924

Browse files
committed
Add GitHub Pages deploy workflow on gh-pages.
Enables Actions-based Pages publishing without changing main. Co-authored-by: Ldsystem <Ldsystem@users.noreply.github.com>
1 parent f4859ed commit 3b30924

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [gh-pages]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Stage site files
26+
run: |
27+
mkdir -p _site
28+
cp index.html _site/index.html
29+
cp .nojekyll _site/.nojekyll
30+
- uses: actions/configure-pages@v5
31+
- uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: _site
34+
- id: deployment
35+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)