Skip to content

Commit

Permalink
ci: adding release please and calling others on release created
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Oct 8, 2024
1 parent 20a9f1f commit a6af357
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/conda.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Build conda packages

on:
push:
release:
types: [published]

jobs:
build_wheels:
Expand Down Expand Up @@ -30,6 +31,8 @@ jobs:
conda install -c conda-forge conda-build scikit-build-core numpy cython anaconda-client conda-libmamba-solver -y
conda build -c conda-forge -c loop3d --output-folder conda conda --python ${{matrix.python-version}}
conda convert -p all conda/linux-64/*.tar.bz2 -f -o conda
anaconda upload --label main conda/*/*.tar.bz2
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/publish_conda.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: publish_conda

on:
release:
types: [published]
push:
branches:
- master
name: release-please
jobs:
publish:
release-please:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish Loop Conda
uses: Loop3D/[email protected]
- uses: GoogleCloudPlatform/release-please-action@v2
with:
subdir: "conda"
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
platforms: "win osx linux"
release-type: python
package-name: map2model
9 changes: 5 additions & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build

on:
release:
types: [published]

jobs:
build_wheels:
Expand All @@ -27,7 +28,7 @@ jobs:
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# skip_existing: true
# verbose: true
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
verbose: true

0 comments on commit a6af357

Please sign in to comment.