Skip to content

Commit

Permalink
Merge pull request #378 from AFM-SPM/ns-rse/360-gh-pages
Browse files Browse the repository at this point in the history
360 | Moving logic for pypi and gh-pages actions to earlier
  • Loading branch information
ns-rse authored Nov 22, 2022
2 parents f70aa48 + 2e6e3c0 commit d819d1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Publish package to PyPi

on:
push:
branches:
- main
# - test/branch # Uncomment and replace with the branch you are testing on
tags:
- v*
jobs:
build-release:
runs-on: ubuntu-latest
Expand All @@ -25,17 +24,7 @@ jobs:
- name: Build package
run: |
python -m build --no-isolation
echo ${{ github.event_name }}
echo ${{ github.ref }}
# - name: Publish package to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1.5.1
# with:
# user: __token__
# repository_url: https://test.pypi.org/legacy/
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
- name: Publish package to PyPI
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sphinx_docs_to_gh_pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Sphinx docs to gh-pages

on:
push:
branches:
- main
tags:
- v*

# workflow_dispatch: # Un comment line if you also want to trigger action manually

Expand Down

0 comments on commit d819d1f

Please sign in to comment.