From 2c0a762a72dab00ed36cccbc44750b2b73a70ac7 Mon Sep 17 00:00:00 2001 From: Snigdhajyoti Ghosh Date: Thu, 16 Nov 2023 01:45:42 +0530 Subject: [PATCH] Update version to 1.1 for github oidc publish --- .github/workflows/publish.yml | 11 ++++++----- aws_fusion/__init__.py | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b824be0..8701429 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,8 @@ jobs: build: runs-on: ubuntu-latest environment: pypi + permissions: + id-token: write steps: - name: Checkout code uses: actions/checkout@v3 @@ -25,10 +27,9 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine - - name: Build and publish to PyPI + - name: Build run: | python setup.py sdist bdist_wheel - python -m twine upload dist/* - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/aws_fusion/__init__.py b/aws_fusion/__init__.py index 7e49527..439eb0c 100644 --- a/aws_fusion/__init__.py +++ b/aws_fusion/__init__.py @@ -1 +1 @@ -__version__ = '1.0' +__version__ = '1.1'