File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Jekyll site to Pages
2
+
3
+ on :
4
+ # Runs on pushes targeting the default branch
5
+ push :
6
+ branches : ["main"]
7
+
8
+ # Allows you to run this workflow manually from the Actions tab
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
+ concurrency :
18
+ group : " pages"
19
+ cancel-in-progress : false
20
+
21
+ jobs :
22
+ build :
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - name : Checkout
26
+ uses : actions/checkout@v4
27
+ - name : Setup Ruby
28
+ uses : ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
29
+ with :
30
+ ruby-version : ' 3.1' # Not needed with a .ruby-version file
31
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
32
+ cache-version : 0 # Increment this number if you need to re-download cached gems
33
+ - name : Setup Pages
34
+ id : pages
35
+ uses : actions/configure-pages@v5
36
+ - name : Build with Jekyll
37
+ # Outputs to the './_site' directory by default
38
+ run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
39
+ env :
40
+ JEKYLL_ENV : production
41
+ - name : Upload artifact
42
+ # Automatically uploads an artifact from the './_site' directory by default
43
+ uses : actions/upload-pages-artifact@v3
44
+
45
+ # Deployment job
46
+ deploy :
47
+ environment :
48
+ name : github-pages
49
+ url : ${{ steps.deployment.outputs.page_url }}
50
+ runs-on : ubuntu-latest
51
+ needs : build
52
+ steps :
53
+ - name : Deploy to GitHub Pages
54
+ id : deployment
55
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments