From 59ec0833b93a3c3fdec4eec17558e0cfcb066d59 Mon Sep 17 00:00:00 2001 From: Anthony Bretaudeau Date: Thu, 22 Aug 2024 14:28:28 +0200 Subject: [PATCH] Upgrade ci --- .github/workflows/ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e28c8bb..b2f20a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install Flake8 @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install requirements @@ -54,7 +54,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v5 with: python-version: 3.8 - name: Check that the package build works @@ -66,10 +66,15 @@ jobs: runs-on: ubuntu-latest needs: [lint, test, pkg_build] name: Deploy release to Pypi + environment: + name: release + url: https://pypi.org/p/biomaj-download + permissions: + id-token: write steps: - name: Checkout uses: actions/checkout@v4 - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v5 with: python-version: 3.8 - name: Python install @@ -78,6 +83,6 @@ jobs: run: python -m build --sdist --wheel --outdir dist/ . - name: Publish distribution 📦 to PyPI if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.pypi_password }}