Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rcervinoucm authored Aug 1, 2024
1 parent a34a411 commit 34b56a7
Showing 1 changed file with 7 additions and 33 deletions.
40 changes: 7 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Release CD

on: [push]
#release:
# types: [published]
on:
push:
branches:
- "**"
tags:
- "**"
pull_request:

jobs:
pypi-publish:
Expand Down Expand Up @@ -40,33 +44,3 @@ jobs:
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

condapublish:
strategy:
matrix:
os: [ubuntu-22.04]
pyv: ["3.10"]
max-parallel: 5
runs-on: ${{ matrix.os }}
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.pyv }}
run: |
conda install -y python=${{ matrix.pyv }}
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: publish-to-conda
uses: maxibor/conda-package-publish-action@v1.1
with:
subDir: '.github/conda'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}

0 comments on commit 34b56a7

Please sign in to comment.