File tree 1 file changed +36
-8
lines changed
1 file changed +36
-8
lines changed Original file line number Diff line number Diff line change 1
- # This is a basic workflow to help you get started with Actions
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name : Build and Deploy
2
3
3
- name : CI
4
-
5
- # Controls when the workflow will run
6
4
on :
5
+ # Runs on pushes targeting the default branch
7
6
push :
8
- branches : [ "release" ]
9
- pull_request :
10
- branches : [ "release" ]
7
+ branches : ["release"]
11
8
12
9
# Allows you to run this workflow manually from the Actions tab
13
10
workflow_dispatch :
14
11
15
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
+ permissions :
14
+ contents : read
15
+ pages : write
16
+ id-token : write
17
+
18
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20
+ concurrency :
21
+ group : " pages"
22
+ cancel-in-progress : false
23
+
16
24
jobs :
17
25
# This workflow contains a single job called "build"
18
26
build :
32
40
# Runs a single command using the runners shell
33
41
- name : Run a one-line script
34
42
run : deno task build
43
+
44
+ # Single deploy job since we're just deploying
45
+ deploy :
46
+ environment :
47
+ name : github-pages
48
+ url : ${{ steps.deployment.outputs.page_url }}
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - name : Checkout
52
+ uses : actions/checkout@v4
53
+ - name : Setup Pages
54
+ uses : actions/configure-pages@v4
55
+ - name : Upload artifact
56
+ uses : actions/upload-pages-artifact@v3
57
+ with :
58
+ # Upload entire repository
59
+ path : " ."
60
+ - name : Deploy to GitHub Pages
61
+ id : deployment
62
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments