Skip to content

Commit ca08a8a

Browse files
Add GitHub Actions workflow for static content deployment
This workflow automates the deployment of static content to GitHub Pages on pushes to the main branch.
1 parent 27a6133 commit ca08a8a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/deployment.yaml

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

0 commit comments

Comments
 (0)