diff --git a/.github/workflows/website-v1-17.yml b/.github/workflows/website-v1-17.yml index 013e842f698..feae7d3776e 100644 --- a/.github/workflows/website-v1-17.yml +++ b/.github/workflows/website-v1-17.yml @@ -12,7 +12,7 @@ on: jobs: build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + if: github.event.action != 'closed' runs-on: ubuntu-latest name: Build and Deploy Job steps: @@ -36,10 +36,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