misc: restore build size bot (#4337)

* restore build size bot

* update
This commit is contained in:
Sébastien Lorber 2021-03-03 16:36:40 +01:00 committed by GitHub
parent 4162e6dcd7
commit 4dad3bf96b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

26
.github/workflows/build-size.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Build Size Report
on:
# Note! you can't safely use "pull_request_target" here
# This workflow is mostly useful for "internal PRs"
# External PRs won't be able to post a PR comment
# See https://github.com/preactjs/compressed-size-action/issues/54
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests
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 }}'
build-script: 'build:v2:en'
pattern: '{website/build/assets/js/main*js,website/build/assets/css/styles*css,website/build/index.html,website/build/blog/**/introducing-docusaurus/*,website/build/docs/introduction/index.html}'
strip-hash: '\.([^;]\w{7})\.'
minimum-change-threshold: 30
compression: 'none'