diff --git a/.github/workflows/website-v1-17.yml b/.github/workflows/website-v1-17.yml index c8e3b1e8ade..afe8cfdd608 100644 --- a/.github/workflows/website-v1-17.yml +++ b/.github/workflows/website-v1-17.yml @@ -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: @@ -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