Skip to content

Bump version v2.2.0 -> v2.2.1 #54

Bump version v2.2.0 -> v2.2.1

Bump version v2.2.0 -> v2.2.1 #54

Workflow file for this run

---
name: Publish on (Test) PyPI
on:
push:
# Commits pushed to release/ branches are published on Test PyPI
# if they have a new version number.
# If the version is the same, the worflow will still complete successfully,
# but the already published version on Test PyPI will not be updated.
branches:
- 'release/**'
release:
types: [published]
jobs:
build:
name: Build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Upload distribution artifact
uses: actions/upload-artifact@v4
with:
name: release
path: dist/
publish-test:
name: Publish on TestPyPI
if: github.repository_owner == 'aiidalab'
needs: [build]
runs-on: ubuntu-latest
environment:
name: Test PyPI
url: https://test.pypi.org/project/aiidalab-widgets-base/
steps:
- uses: actions/download-artifact@v4
name: Download distribution artifact
with:
name: release
path: dist/
- name: Publish distribution on Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
publish:
name: Publish on PyPI
if: startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'aiidalab'
needs: [build, publish-test]
runs-on: ubuntu-latest
environment:
name: PyPI
url: https://pypi.org/project/aiidalab-widgets-base/
steps:
- uses: actions/download-artifact@v4
name: Download distribution artifact
with:
name: release
path: dist/
- name: Publish distribution on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}