Skip to content

Commit 07cbf42

Browse files
author
Đức Mạnh
authored
Merge pull request #3 from evoelsewhere/feature/landing-page-deployment
ci(site): deploy landing page to Pages
2 parents 5a89d6e + caf7f79 commit 07cbf42

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

‎.github/workflows/deploy-site.yml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy static landing page
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- "site/**"
8+
- ".github/workflows/deploy-site.yml"
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: github-pages
16+
cancel-in-progress: true
17+
18+
jobs:
19+
publish:
20+
if: github.ref == 'refs/heads/master'
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pages: write
25+
id-token: write
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
steps:
30+
- name: Check out source
31+
uses: actions/checkout@v7
32+
33+
- name: Upload landing page
34+
uses: actions/upload-pages-artifact@v4
35+
with:
36+
path: site
37+
38+
- name: Deploy to GitHub Pages
39+
id: deployment
40+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)