Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -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]
28 changes: 17 additions & 11 deletions .github/workflows/test_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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: ${{ env.PKG_NAME }}
label: ${{ env.CONDA_LABEL }}
keep: 5

pypi-publish:
name: Upload release to PyPI
Expand Down