mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 12:22:45 +02:00
parent
4162e6dcd7
commit
4dad3bf96b
1 changed files with 26 additions and 0 deletions
26
.github/workflows/build-size.yml
vendored
Normal file
26
.github/workflows/build-size.yml
vendored
Normal 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'
|
Loading…
Add table
Add a link
Reference in a new issue