From d1e75d2f690a6c0d88ceba390d0fa520e1d1852d Mon Sep 17 00:00:00 2001 From: Irfan Alibay Date: Sun, 3 Sep 2023 11:41:02 +0100 Subject: [PATCH 1/2] Update deploy.yaml --- .github/workflows/deploy.yaml | 52 ++++++++--------------------------- 1 file changed, 12 insertions(+), 40 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 85f4e6e..55dd6a0 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,4 +1,4 @@ -name: Build and upload to PyPI +name: Build and upload to PyPi on: push: @@ -8,55 +8,27 @@ on: types: - published - -concurrency: - group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}" - cancel-in-progress: true - - -defaults: - run: - shell: bash -l {0} - - jobs: - build_wheels: + pypi_push: environment: deploy if: "github.repository == 'MDAnalysis/GridDataFormats'" - name: Build pure Python wheel + name: Build, upload and test pure Python wheels runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: setup_miniconda - uses: conda-incubator/setup-miniconda@v2 - with: - python-version: 3.9 - auto-update-conda: true - add-pip-as-python-dependency: true - architecture: x64 - - - name: install_deps - run: | - python -m pip install build - - - name: build - run: | - python -m build --sdist --wheel --outdir dist/ - - name: publish_testpypi - # Upload to testpypi on every tag + - name: testpypi_deploy + uses: MDAnalysis/pypi-deployment@main if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + token: ${{ secrets.TEST_PYPI_API_TOKEN }} + test_submission: true + package_name: 'gridData' - - name: publish_pypi + - name: pypi_deploy + uses: MDAnalysis/pypi-deployment@main if: github.event_name == 'release' && github.event.action == 'published' - uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.PYPI_API_TOKEN }} + token: ${{ secrets.PYPI_API_TOKEN }} + package_name: 'gridData' From 3dfe3c55db703f1519feec2297529dda09ea3726 Mon Sep 17 00:00:00 2001 From: Irfan Alibay Date: Sat, 21 Oct 2023 15:49:22 +0100 Subject: [PATCH 2/2] Update deploy.yaml --- .github/workflows/deploy.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 55dd6a0..fc0f7ee 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -24,11 +24,13 @@ jobs: with: token: ${{ secrets.TEST_PYPI_API_TOKEN }} test_submission: true - package_name: 'gridData' + package_name: GridDataFormats + module_name: 'gridData' - name: pypi_deploy uses: MDAnalysis/pypi-deployment@main if: github.event_name == 'release' && github.event.action == 'published' with: token: ${{ secrets.PYPI_API_TOKEN }} - package_name: 'gridData' + package_name: GridDataFormats + module_name: 'gridData'