Skip to content

Commit 9930e13

Browse files
committed
ci: add github action to deploy to pages
1 parent 2b9c2e8 commit 9930e13

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# /.github/workflows/deploy.yaml
2+
# GitHub actions workflow
3+
4+
name: Pages Deployment
5+
6+
on:
7+
push:
8+
branches: ["main"]
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
deploy:
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v3
32+
- name: Setup pages
33+
uses: actions/configure-pages@v3
34+
- name: Upload files
35+
uses: actions/upload-pages-artifact@v2
36+
with:
37+
path: "."
38+
- name: Deploy to pages
39+
id: deployment
40+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)