Skip to content

Simplify Collections (#780) #750

Simplify Collections (#780)

Simplify Collections (#780) #750

Workflow file for this run

name: push
on:
push:
branches:
- master
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: butlerlogic/[email protected] # https://github.com/ButlerLogic/action-autotag/issues/45#issuecomment-1825726927
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
strategy: regex
root: src/utilities/__init__.py
regex_pattern: '__version__ = "(?<version>\d+\.\d+\.\d+)"'
build:
runs-on: ubuntu-latest
needs: tag
steps:
- uses: actions/checkout@v4
- run: python -m pip install --upgrade hatch
- run: hatch build
- uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist/*
if-no-files-found: error
publish:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/download-artifact@v3
with:
name: artifacts
path: dist
- uses: pypa/[email protected]
with:
skip_existing: true
user: __token__
password: ${{ secrets.PYPI_TOKEN }}