File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313jobs :
1414 build_and_deploy_job :
15- if : github.event_name == 'push' || (github.event_name == 'pull_request' && github. event.action != 'closed')
15+ if : github.event.action != 'closed'
1616 runs-on : ubuntu-latest
1717 name : Build and Deploy Job
1818 steps :
@@ -36,10 +36,20 @@ jobs:
3636 cd ..
3737 sudo npm install -D --save autoprefixer
3838 sudo npm install -D --save postcss-cli
39+ - name : Trim for Free tier
40+ run : |
41+ rm -rf daprdocs/content/zh-hans translations/docs-zh
42+ rm -rf daprdocs/themes/docsy/assets/vendor/Font-Awesome/svgs
43+ rm -rf daprdocs/themes/docsy/assets/vendor/Font-Awesome/sprites
44+ rm -rf daprdocs/themes/docsy/assets/vendor/Font-Awesome/js-packages
45+ rm -rf daprdocs/themes/docsy/assets/vendor/Font-Awesome/metadata
46+ rm -rf daprdocs/themes/docsy/assets/vendor/bootstrap/site
47+ rm -rf daprdocs/themes/docsy/assets/vendor/bootstrap/js/tests
48+ rm -rf daprdocs/themes/docsy/assets/vendor/bootstrap/scss/tests
3949 - name : Build Hugo Website
4050 run : |
4151 git config --global --add safe.directory /github/workspace
42- hugo --minify
52+ hugo --minify --disableKinds RSS,sitemap,taxonomy,term --ignoreErrors
4353 - name : Deploy Website
4454 id : builddeploy
4555 uses : Azure/static-web-apps-deploy@v1
You can’t perform that action at this time.
0 commit comments