Bump version #38
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 "/") ! | |
- '[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: github.repository == 'epfl-theos/aiida-aurora' && startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Install flit | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flit~=3.4 | |
- name: Build and publish | |
run: | | |
flit publish | |
env: | |
FLIT_USERNAME: __token__ | |
FLIT_PASSWORD: ${{ secrets.pypi_token }} |