Skip to content

refactor!: rename project to DecoyShield (breaking) #2

refactor!: rename project to DecoyShield (breaking)

refactor!: rename project to DecoyShield (breaking) #2

Workflow file for this run

name: release
on:
push:
tags: ["v*"]
workflow_dispatch: {}
jobs:
build:
name: Build sdist + wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install build backend
run: |
python -m pip install --upgrade pip
pip install build
- name: Build distributions
run: python -m build
- name: Show artifacts
run: ls -lh dist/
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
# The "pypi" environment must exist in the repo settings and is bound
# to the trusted publisher configured at pypi.org. OIDC token request
# requires id-token: write.
environment:
name: pypi
url: https://pypi.org/p/decoyshield
permissions:
id-token: write
contents: read
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1