1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ # Sample workflow for building and deploying a Jekyll site to GitHub Pages
7
+ name : Deploy Jekyll site to Pages
8
+
9
+ on :
10
+ # Runs on pushes targeting the default branch
11
+ push :
12
+ branches : [ $default-branch ]
13
+ pull_request :
14
+ branches : [ 'main', '2.x' ]
15
+ types : [ opened ]
16
+
17
+ # Allows you to run this workflow manually from the Actions tab
18
+ workflow_dispatch :
19
+
20
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
21
+ permissions :
22
+ contents : write
23
+ pages : write
24
+ id-token : write
25
+
26
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
27
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
28
+ concurrency :
29
+ group : " pages"
30
+ cancel-in-progress : false
31
+
32
+ jobs :
33
+ # Build and Deploy job
34
+ build_and_deploy :
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - name : Checkout
38
+ uses : actions/checkout@v4
39
+ - name : Setup Ruby
40
+ uses : ruby/setup-ruby@v1 # Update to latest version as needed
41
+ with :
42
+ ruby-version : ' 3.1' # Not needed with a .ruby-version file
43
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
44
+ cache-version : 0 # Increment this number if you need to re-download cached gems
45
+ - name : Bundle install in docs folder
46
+ run : |
47
+ cd docs
48
+ bundle install
49
+ - name : Build Jekyll site
50
+ run : |
51
+ cd docs
52
+ bundle exec jekyll build --baseurl /rqueue
53
+ mkdir -p _site # Ensure _site directory exists
54
+ env :
55
+ JEKYLL_ENV : production
56
+ - name : Verify _site directory
57
+ run : |
58
+ cd docs
59
+ ls -l _site
60
+ - name : Upload artifact
61
+ # Automatically uploads an artifact from the './_site' directory by default
62
+ uses : actions/upload-artifact@v2
63
+ with :
64
+ name : Jekyll site
65
+ path : docs/_site
66
+ - name : Deploy to GitHub Pages
67
+ uses :
JamesIves/[email protected] # Replace with the appropriate deploy action
68
+ with :
69
+ branch : $default-branch
70
+ folder : docs/_site
71
+ cname : sonus21.github.io
72
+ env :
73
+ JEKYLL_ENV : production
74
+ BASE_URL : /rqueue
0 commit comments