From 341f9ab2a620f1800810dde219fd83a6611a85fb Mon Sep 17 00:00:00 2001 From: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com> Date: Thu, 2 May 2024 13:45:37 -0500 Subject: [PATCH] Create make-publish.yml --- .github/workflows/make-publish.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/make-publish.yml diff --git a/.github/workflows/make-publish.yml b/.github/workflows/make-publish.yml new file mode 100644 index 00000000..6cb518e5 --- /dev/null +++ b/.github/workflows/make-publish.yml @@ -0,0 +1,32 @@ + +name: Update gh-pages + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install Python + uses: actions/setup-python@v3 + with: + python-version: '3.11' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install asv + - name: Run asv publish + run: | + asv publish + + - name: Update gh-pages branch + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.UXARRAY_ASV_PAT }} + publish_dir: ./html