antarcticrainforest creating a new release 🧉 #5
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 a new release | |
run-name: ${{ github.actor }} creating a new release 🧉 | |
# Set the access for individual scopes, or use permissions: write-all | |
permissions: | |
pull-requests: write | |
contents: write | |
packages: write | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
tests: | |
uses: ./.github/workflows/ci_job.yml | |
pypi: | |
name: Create Pip package | |
permissions: | |
id-token: write | |
needs: [tests] | |
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: Install flit | |
run: python -m pip install flit | |
- name: Building 📦 with flit | |
run: flit build | |
- name: publish distribution 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
skip-existing: true | |
verbose: true |