mirror of
https://github.com/Textualize/rich.git
synced 2025-08-17 08:50:24 +00:00
Merge pull request #2074 from Textualize/benchmark-copy-action
GitHub Action to publish ASV HTML and copy to `rich-benchmarks`
This commit is contained in:
commit
1e972e384a
1 changed files with 24 additions and 0 deletions
24
.github/workflows/update_benchmark_website.yml
vendored
Normal file
24
.github/workflows/update_benchmark_website.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [ released ]
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
asv-publish-and-copy:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.10.2'
|
||||||
|
- run: 'pip install asv'
|
||||||
|
- run: 'asv publish'
|
||||||
|
- uses: pina/github-action-push-to-another-repository@v1.4.1
|
||||||
|
name: 'Copy files to Textualize/rich-benchmarks repo'
|
||||||
|
env:
|
||||||
|
API_TOKEN_GITHUB: ${{ secrets.PUBLISH_ASV }}
|
||||||
|
with:
|
||||||
|
source-directory: /benchmarks/html
|
||||||
|
destination-github-username: Textualize
|
||||||
|
destination-repository-name: rich-benchmarks
|
||||||
|
user-email: darren@textualize.io
|
Loading…
Add table
Add a link
Reference in a new issue