antarcticrainforest is uploading the code to pypi 🧉 #29
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: Create Pip package | |
run-name: ${{ github.actor }} is uploading the code to pypi 🧉 | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
pipy: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Adding the evaluation config file | |
run: python src/freva_deployment/__init__.py | |
- | |
name: Install flit | |
run: python -m pip install flit | |
- | |
name: Building freva-deployment 📦 with flit | |
run: flit build | |
- | |
name: publish distribution 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository-url: https://test.pypi.org/legacy/ |