Skip to content

Commit a4c7762

Browse files
Build Jekyll (#129)
1 parent 0a191de commit a4c7762

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/azure-static-web-apps-gray-plant-049754e10.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@ jobs:
1616
name: Build and Deploy Job
1717
steps:
1818
- uses: actions/checkout@v2
19+
20+
# Use GitHub Actions' cache to shorten build times and decrease load on servers
21+
- uses: actions/cache@v1
22+
with:
23+
path: vendor/bundle
24+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-gems-
27+
28+
- name: Make build destination directory
29+
run: mkdir -vp ./_site
30+
31+
- name: Jekyll Build
32+
uses: gha-utilities/jekyll-build@v0.0.4
33+
with:
34+
source: ./
35+
destination: ./_site
36+
1937
- name: Build And Deploy
2038
id: builddeploy
2139
uses: Azure/static-web-apps-deploy@v0.0.1-preview
@@ -25,8 +43,8 @@ jobs:
2543
action: 'upload'
2644
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
2745
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
28-
app_location: '/' # App source code path
29-
api_location: 'api' # Api source code path - optional
46+
app_location: '_site' # App source code path
47+
api_location: '' # Api source code path - optional
3048
app_artifact_location: '' # Built app content directory - optional
3149
###### End of Repository/Build Configurations ######
3250

0 commit comments

Comments
 (0)