Bump version v2.1.0 -> v2.1.1. #8
Workflow file for this run
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
--- | |
name: Publish on PyPI | |
on: | |
push: | |
tags: | |
# After vMajor.Minor.Patch _anything_ is allowed (without "/") ! | |
- v[0-9]+.[0-9]+.[0-9]+* | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: github.repository == 'nanotech-empa/aiida-gaussian' && startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install pypa/build | |
run: | | |
python -m pip install build | |
- name: Build source distribution | |
run: python -m build . --wheel --sdist | |
- uses: softprops/[email protected] | |
name: Create release | |
with: | |
files: | | |
dist/* | |
generate_release_notes: true | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN }} |