Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/website-v1-17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
Loading