File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # Set the default working-directory param for the build job.
3
+ build :
4
+ runs-on : ubuntu-latest
5
+ defaults :
6
+ run :
7
+ working-directory : docs
8
+
9
+ # Set the working-directory param for the Setup Ruby step.
10
+ - name : Setup Ruby
11
+ uses : ruby/setup-ruby@v1
12
+ with :
13
+ ruby-version : ' 3.1'
14
+ bundler-cache : true
15
+ cache-version : 0
16
+ working-directory : ' ${{ github.workspace }}/docs'
17
+
18
+ # Set the path param for the Upload artifact step:
19
+ - name : Upload artifact
20
+ uses : actions/upload-pages-artifact@v1
21
+ with :
22
+ path : " docs/_site/"
23
+
24
+ # Modify the trigger so that only changes within the docs directory start the workflow.
25
+ # Otherwise, every change to your project (even those that don't affect the docs) would trigger a new site build and deploy.
26
+ on :
27
+ push :
28
+ branches :
29
+ - " main"
30
+ paths :
31
+ - " docs/**"
You can’t perform that action at this time.
0 commit comments