Skip to content

Commit ceb0375

Browse files
committed
Add CI workflow to deploy to GitHub pages on merges to main
- `withastro/action` is the primary mechanism that builds dist/ from source and deploys to GitHub pages Signed-off-by: Dan Childers <dchilder@redhat.com>
1 parent 2d7b9b8 commit ceb0375

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: pages
14+
cancel-in-progress: false
15+
16+
jobs:
17+
build:
18+
name: Build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: withastro/action@v6
23+
24+
deploy:
25+
name: Deploy
26+
needs: build
27+
runs-on: ubuntu-latest
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
steps:
32+
- id: deployment
33+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)