File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ schedule :
7
+ - cron : " 0 0 * * *" # Runs every day at 00:00 UTC time
8
+ workflow_dispatch :
9
+
10
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11
+ permissions :
12
+ contents : read
13
+ pages : write
14
+ id-token : write
15
+
16
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18
+ concurrency :
19
+ group : " pages"
20
+ cancel-in-progress : false
21
+
22
+ jobs :
23
+ build :
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - name : Checkout
27
+ uses : actions/checkout@v4
28
+
29
+ - name : Setup Ruby
30
+ uses : ruby/setup-ruby@v1
31
+ with :
32
+ bundler-cache : true
33
+
34
+ - name : Setup Pages
35
+ id : pages
36
+ uses : actions/configure-pages@v5
37
+
38
+ - name : Build with Jekyll
39
+ # Outputs to the './_site' directory by default
40
+ run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
41
+ env :
42
+ JEKYLL_ENV : production
43
+
44
+ - name : Upload artifact
45
+ # Automatically uploads an artifact from the './_site' directory by default
46
+ uses : actions/upload-pages-artifact@v3
47
+
48
+ # Deployment job
49
+ deploy :
50
+ environment :
51
+ name : github-pages
52
+ url : ${{ steps.deployment.outputs.page_url }}
53
+
54
+ runs-on : ubuntu-latest
55
+ needs : build
56
+
57
+ steps :
58
+ - name : Deploy to GitHub Pages
59
+ id : deployment
60
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments