Skip to content

Commit 39eca20

Browse files
committed
fix: allow workflow_dispatch + trim non-content assets for Free tier
Signed-off-by: paulyuk <paulyuk@microsoft.com>
1 parent 20a036a commit 39eca20

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/website-v1-17.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
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

0 commit comments

Comments
 (0)