diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml deleted file mode 100644 index de155a4..0000000 --- a/.github/workflows/python-publish.yml +++ /dev/null @@ -1,34 +0,0 @@ -# This workflow will upload a Python Package using Twine when a release is created -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries - -name: Upload Python Package - -on: - release: - types: [created] - -permissions: - contents: read - -jobs: - deploy: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ae82ac..1cf921d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,18 +11,12 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: write-all strategy: matrix: python-versions: ['3.10'] - permissions: - id-token: write - contents: write - issues: write - pull-requests: write - actions: write - repository-projects: write outputs: package_version: ${{ steps.variables_step.outputs.package_version }}