Skip to content
14 changes: 12 additions & 2 deletions .github/workflows/website-v1-17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

build_and_deploy_job:
needs: check_state
if: needs.check_state.outputs.is_latest != 'true' && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed'))
if: needs.check_state.outputs.is_latest != 'true' && github.event.action != 'closed'
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
Expand All @@ -66,10 +66,20 @@ jobs:
cd ..
sudo npm install -D --save autoprefixer
sudo npm install -D --save postcss-cli
- name: Trim for Free tier
run: |
rm -rf daprdocs/content/zh-hans translations/docs-zh
rm -rf daprdocs/themes/docsy/assets/vendor/Font-Awesome/svgs
rm -rf daprdocs/themes/docsy/assets/vendor/Font-Awesome/sprites
rm -rf daprdocs/themes/docsy/assets/vendor/Font-Awesome/js-packages
rm -rf daprdocs/themes/docsy/assets/vendor/Font-Awesome/metadata
rm -rf daprdocs/themes/docsy/assets/vendor/bootstrap/site
rm -rf daprdocs/themes/docsy/assets/vendor/bootstrap/js/tests
rm -rf daprdocs/themes/docsy/assets/vendor/bootstrap/scss/tests
- name: Build Hugo Website
run: |
git config --global --add safe.directory /github/workspace
hugo --minify
hugo --minify --disableKinds RSS,sitemap,taxonomy,term
- name: Deploy Website
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand Down
Loading