-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from cgat-developers/AC-removered
Ac removered
- Loading branch information
Showing
18 changed files
with
209 additions
and
11,925 deletions.
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
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,73 @@ | ||
name: Publish cgat-apps wheels to PyPI and TestPyPI | ||
|
||
on: | ||
push: | ||
branches: | ||
- v[0-9]+.[0-9]+.x | ||
tags: | ||
- v* | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
|
||
build_sdist: | ||
|
||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu, macos] | ||
python-version: [3.10] | ||
|
||
steps: | ||
- name: Checkout cgat-apps | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install prerequisite Python libraries | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install wheel | ||
- name: Create source distribution | ||
run: python setup.py sdist bdist_wheel | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: dist/*.whl | ||
|
||
upload_pypi: | ||
|
||
needs: [build_sdist] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Get Artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- name: Publish distribution to Test PyPI | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
- name: Publish distribution to PyPI | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
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
Oops, something went wrong.