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'