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:
Will McGugan 2022-03-18 08:54:49 +00:00 committed by GitHub
commit 1e972e384a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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