From 24ed9dab8bb43aca28e7d02d9e21ba7801208fec Mon Sep 17 00:00:00 2001 From: "colton.herrod" Date: Tue, 7 May 2024 09:04:06 -0500 Subject: [PATCH] pipeline changes, resetting version --- .github/workflows/publish.yml | 38 +++++++++++++++++++---------------- parliamentarian/__init__.py | 2 +- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8c68fde..5fe308a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,22 +8,26 @@ on: types: [created] jobs: - deploy: + pypi-publish: + name: upload release to PyPI runs-on: ubuntu-latest + environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build + run: | + python setup.py sdist bdist_wheel + # retrieve your distributions here + - name: Publish package distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/parliamentarian/__init__.py b/parliamentarian/__init__.py index 5366ef6..0126f4a 100644 --- a/parliamentarian/__init__.py +++ b/parliamentarian/__init__.py @@ -1,7 +1,7 @@ """ This library is a linter for AWS IAM policies. """ -__version__ = "1.6.2" +__version__ = "1.0.0" import fnmatch import functools