-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added autopush for tagged commits to testpypi, pypi
- Loading branch information
1 parent
178f6bf
commit a10ec51
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Publish pywaterflood builds to PyPI and TestPyPI | ||
|
||
on: push | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build and publish pywaterflood to PyPI and TestPyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: set up python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install pypa/build | ||
run: python -m pip install build --user | ||
- name: build wheel and source tarball | ||
run: python -m build --sdist --wheel --outdir dist/ | ||
- name: Publish distribution to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish distribution to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
sphinx==4.2.0 | ||
sphinx-autoapi==1.8.4 | ||
sphinx-rtd-theme==1.0 | ||
myst-nb==0.13.1 | ||
myst-nb==0.13.1 | ||
pandas==1.2.4 | ||
matplotlib==3.3.4 | ||
numba==0.53.1 | ||
numpy==1.20.1 | ||
scipy==1.6.2 |