From e39e18d393de6953de9d18d803b7029484134cf3 Mon Sep 17 00:00:00 2001 From: alexeykozhevin Date: Tue, 30 Jul 2024 00:03:48 +0000 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 17 ++++++++--------- segfast/__init__.py | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba117c3..efcc1f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,20 +8,19 @@ on: jobs: pypi: runs-on: ubuntu-latest - - container: - image: analysiscenter1/ds-py3 + environment: release + permissions: + id-token: write steps: - uses: actions/checkout@v3 - name: Install dependencies - run: pip3 install --upgrade setuptools wheel twine + run: pip3 install --upgrade setuptools wheel - - name: Build and publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + - name: Build run: | python3 setup.py sdist bdist_wheel - twine upload --repository pypi dist/* \ No newline at end of file + + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/segfast/__init__.py b/segfast/__init__.py index f608042..0b16eca 100644 --- a/segfast/__init__.py +++ b/segfast/__init__.py @@ -4,4 +4,4 @@ from .loader import Loader, File, open #pylint: disable=redefined-builtin from .trace_header_spec import TraceHeaderSpec -__version__ = '1.0.1' +__version__ = '1.0.2'