Skip to content

Commit 2c76ae4

Browse files
committed
added github actions workflow
1 parent 50e6f72 commit 2c76ae4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/deployment.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Get Code
14+
uses: actions/checkout@v4
15+
- name: Upload Build
16+
uses: actions/upload-pages-artifact@v3
17+
with:
18+
path: .
19+
deploy:
20+
needs: build
21+
# Only deploy for the main branch
22+
if: github.ref == 'refs/heads/main'
23+
permissions:
24+
pages: write
25+
id-token: write
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Get Code
32+
uses: actions/checkout@v4
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)