Skip to content

Commit

Permalink
Merge pull request #19 from MPI-Dortmund/auto_release
Browse files Browse the repository at this point in the history
Auto release
  • Loading branch information
thorstenwagner authored May 12, 2023
2 parents 4bf95a1 + 48c6084 commit 65e10b0
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/checks_tests_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint tox tox-gh-actions pytest pytest-coverage
pip install setuptools setuptools_scm pylint tox tox-gh-actions pytest pytest-coverage twine build
pip install .
- name: Debug Info
run: |
Expand All @@ -45,3 +45,29 @@ jobs:
PLATFORM: ${{ matrix.platform }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
deploy:
# this will run when you have tagged a commit, starting with "v*"
# and requires that you have put your twine API key in your
# github secrets (see readme for details)
needs: [ build ]
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools setuptools_scm wheel twine build
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
run: |
git tag
python -m build .
twine upload dist/*

0 comments on commit 65e10b0

Please sign in to comment.