File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments