We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e6f72 commit 2c76ae4Copy full SHA for 2c76ae4
.github/workflows/deployment.yml
@@ -0,0 +1,35 @@
1
+name: Test and Deploy
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request:
7
8
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
30
31
32
33
+ - name: Deploy to GitHub Pages
34
+ id: deployment
35
+ uses: actions/deploy-pages@v4
0 commit comments