From 37b11e813614d6529cda4c861cfc50ef28e6ff82 Mon Sep 17 00:00:00 2001 From: Glass Date: Fri, 6 Mar 2026 14:34:21 -0500 Subject: [PATCH 1/3] Use new conda-actions repo --- .github/release.yml | 9 +++++++++ .github/workflows/test_and_deploy.yaml | 28 ++++++++++++++++---------- 2 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..e2dd461 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,9 @@ +# Exclude bot PRs from auto-generated release notes +changelog: + exclude: + labels: + - ignore-for-release + authors: + - dependabot + - dependabot[bot] + - pre-commit-ci[bot] diff --git a/.github/workflows/test_and_deploy.yaml b/.github/workflows/test_and_deploy.yaml index 67bee23..672f3fa 100644 --- a/.github/workflows/test_and_deploy.yaml +++ b/.github/workflows/test_and_deploy.yaml @@ -89,7 +89,7 @@ jobs: cp *.conda /tmp/local-channel/linux-64 - name: Verify conda package - uses: neutrons/conda-verify@main + uses: neutrons/conda-actions/pkg-verify@main with: package-name: ${{ env.PKG_NAME }} module-name: ${{ env.MODULE_NAME }} @@ -105,7 +105,7 @@ jobs: name: Upload package to anaconda runs-on: ubuntu-latest needs: [tests, conda-build] - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' steps: - name: Checkout uses: actions/checkout@v6 @@ -132,15 +132,21 @@ jobs: name: artifact-conda-package - name: Upload package to anaconda - env: - ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} - IS_RC: ${{ contains(github.ref, 'rc') }} - run: | - # label is main or rc depending on the tag-name - CONDA_LABEL="main" - if [ "${IS_RC}" = "true" ]; then CONDA_LABEL="rc"; fi - echo pushing ${{ github.ref }} with label $CONDA_LABEL - pixi run anaconda upload --label $CONDA_LABEL --user neutrons ${{ env.PKG_NAME }}-*.conda + uses: neutrons/conda-actions/publish@main + with: + anaconda-token: ${{ secrets.ANACONDA_TOKEN }} + organization: neutrons + package-path: ${{ env.PKG_NAME }}-*.conda + + - name: Remove old packages + if: github.ref == 'refs/heads/next' + uses: neutrons/conda-actions/pkg-remove@v1 + with: + anaconda_token: ${{ secrets.ANACONDA_TOKEN }} + organization: neutrons + package_name: quicknxs + label: ${{ env.CONDA_LABEL }} + keep: 5 pypi-publish: name: Upload release to PyPI From e2fb8ce53b41487b417c79bc71da0d57821aad9f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 Mar 2026 19:35:06 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/test_and_deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yaml b/.github/workflows/test_and_deploy.yaml index 672f3fa..419863b 100644 --- a/.github/workflows/test_and_deploy.yaml +++ b/.github/workflows/test_and_deploy.yaml @@ -137,7 +137,7 @@ jobs: anaconda-token: ${{ secrets.ANACONDA_TOKEN }} organization: neutrons package-path: ${{ env.PKG_NAME }}-*.conda - + - name: Remove old packages if: github.ref == 'refs/heads/next' uses: neutrons/conda-actions/pkg-remove@v1 From cba88b3ba04d18b309ac6dcd1f3b37a87181638a Mon Sep 17 00:00:00 2001 From: Glass Date: Fri, 6 Mar 2026 14:40:54 -0500 Subject: [PATCH 3/3] fix name --- .github/workflows/test_and_deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yaml b/.github/workflows/test_and_deploy.yaml index 419863b..259855c 100644 --- a/.github/workflows/test_and_deploy.yaml +++ b/.github/workflows/test_and_deploy.yaml @@ -144,7 +144,7 @@ jobs: with: anaconda_token: ${{ secrets.ANACONDA_TOKEN }} organization: neutrons - package_name: quicknxs + package_name: ${{ env.PKG_NAME }} label: ${{ env.CONDA_LABEL }} keep: 5