diff --git a/.github/workflows/build-size.yml b/.github/workflows/build-size.yml new file mode 100644 index 0000000000..84e2069ebd --- /dev/null +++ b/.github/workflows/build-size.yml @@ -0,0 +1,24 @@ +name: Build Size + +on: + # Trigger the workflow on push or pull request, + # but only for the master branch + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: preactjs/compressed-size-action@v2 + with: + repo-token: '${{ secrets.GITHUB_TOKEN }}' + pattern: '{website/build/main*js,website/build/styles*css,website/build/index.html,website/build/blog/**/introducing-docusaurus/*,website/build/docs/introduction/index.html}' + strip-hash: '\.([^;]\w{7})\.' + minimum-change-threshold: 100