Skip to content

Commit c61790a

Browse files
committed
modified github actions workflow
1 parent 515cbb9 commit c61790a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/pages.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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/**"

0 commit comments

Comments
 (0)