GitHub Action

Last updated 5 months ago

Upload your build stats to us via GitHub Action

By far the simplest way to send us your build stats is to utilize our GitHub Action.

You can set this up in GitHub Actions UI, or you can use the following workflow to get started quickly in your .github/main.workflow file.

workflow "packtracker.io" {
on = "push"
resolves = ["Report to packtracker.io"]
}
action "Report to packtracker.io" {
uses = "packtracker/github-action@1.0.1"
secrets = ["PT_PROJECT_TOKEN"]
env = {
"WEBPACK_CONFIG_PATH" = "./path/to/your/webpack.config.js"
}
}

Once you have this set up, you'll need to add your PT_PROJECT_TOKEN secret in the actions UI.

If you don't use GitHub, or don't yet have access to GitHub Actions, you can still use our webpack plugin to report your build stats to us. (psst... the GitHub Action uses the plugin under the covers 😄)