Skip to content

Commit

Permalink
Fix Github actions script (#4)
Browse files Browse the repository at this point in the history
* patch deploy script
  • Loading branch information
jpn-- authored Feb 19, 2022
1 parent 66d5123 commit 183e9ca
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches: [ main ]
tags:
- 'v[0-9]+.[0-9]+**'
workflow_dispatch:

jobs:
test:
Expand Down Expand Up @@ -60,6 +61,7 @@ jobs:
# only on pushes tagged with v...
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment: asim
defaults:
run:
shell: bash -l {0}
Expand Down Expand Up @@ -90,6 +92,12 @@ jobs:
run: |
conda info -a
conda list
- name: Install pip build
run: |
python -m pip install --upgrade build
- name: Build wheel
run: |
python -m build
- name: Build the docs
run: |
python docs/_script/run_all.py
Expand All @@ -101,12 +109,6 @@ jobs:
# Token is created automatically by Github Actions, no other config needed
publish_dir: ./docs/_build/html
# now send to PyPI
- name: Install pip build
run: |
python -m pip install --upgrade build
- name: Build wheel
run: |
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit 183e9ca

Please sign in to comment.