From bb1967656fe6a68a8e28f8336ade70ee1f3548e5 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Wed, 16 Mar 2022 10:55:41 +0000 Subject: [PATCH] GitHub Action to asv publish and copy to rich-benchmarks repo --- .../workflows/update_benchmark_website.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/update_benchmark_website.yml diff --git a/.github/workflows/update_benchmark_website.yml b/.github/workflows/update_benchmark_website.yml new file mode 100644 index 00000000..e6eccebb --- /dev/null +++ b/.github/workflows/update_benchmark_website.yml @@ -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