diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..11354e5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +on: + push: + tags: + - '*' + +name: Release + +jobs: + testing: + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: [ "3.8" ] + os: [ "ubuntu-latest" ] + name: Release + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup PDM + uses: pdm-project/setup-pdm@v3 + with: + python-version: ${{ matrix.python-version }} + cache: true + + - name: Install dependencies + run: pdm install -v && pdm info + + - name: Publish on git tags + run: make publish + env: + PYPI_UNAME: __token__ + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/test-lint.yml similarity index 97% rename from .github/workflows/ci.yml rename to .github/workflows/test-lint.yml index ef87226..679dab9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/test-lint.yml @@ -2,8 +2,6 @@ on: push: branches: - 'main' - tags: - - '*' pull_request: branches: - '*' diff --git a/pyproject.toml b/pyproject.toml index f9f0b52..d8e98a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -157,7 +157,7 @@ test = [ source = "scm" [project] -name = "pytest_when" +name = "pytest-when" dynamic = ["version"] description = "Utility which makes mocking more readable and controllable" authors = [