From e8b81de2a7dbf6eb78190a1deeae2368278a0ee5 Mon Sep 17 00:00:00 2001 From: Frederic Boudon Date: Tue, 23 Jan 2024 22:42:10 +0100 Subject: [PATCH] Update conda-package-build.yml --- .github/workflows/conda-package-build.yml | 73 ++++------------------- 1 file changed, 13 insertions(+), 60 deletions(-) diff --git a/.github/workflows/conda-package-build.yml b/.github/workflows/conda-package-build.yml index 593e26b..ea4c4d5 100644 --- a/.github/workflows/conda-package-build.yml +++ b/.github/workflows/conda-package-build.yml @@ -1,65 +1,18 @@ -name: build_publish_anaconda +name: Building Package on: push: - branches: [ master ] + branches: + - '**' + tags: + - 'v*' pull_request: - branches: [ master ] - -jobs: - build-and-publish: - name: ${{ matrix.os }}, Python 3.${{ matrix.python-minor-version }} for conda deployment - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ ubuntu-latest , macos-latest , windows-latest] - python-minor-version: [8, 9, 10, 11, 12] - isMaster: - - ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/dev') }} - exclude: - - isMaster: false - os: ubuntu-latest - python-minor-version: 8 - - isMaster: false - os: ubuntu-latest - python-minor-version: 9 - - isMaster: false - os: macos-latest - python-minor-version: 8 - - isMaster: false - os: macos-latest - python-minor-version: 9 - - isMaster: false - os: macos-latest - python-minor-version: 10 - - isMaster: false - os: windows-latest - python-minor-version: 8 - - isMaster: false - os: windows-latest - python-minor-version: 9 - - isMaster: false - os: windows-latest - python-minor-version: 10 + branches: + - '**' + - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Determine publish - uses: haya14busa/action-cond@v1 - id: publish - with: - cond: ${{ contains(github.ref, 'stable') || startsWith(github.ref, 'refs/heads/v') }} - if_true: 'true' - if_false: 'false' - - name: Build and Publish - uses: openalea/action-build-publish-anaconda@v0.1.4 - with: - conda: conda - mamba: true - python: ${{ matrix.python-minor-version }} - channels: fredboudon, conda-forge - token: ${{ secrets.ANACONDA_TOKEN }} - publish: ${{ steps.publish.outputs.value }} - label: main \ No newline at end of file +jobs: + build: + uses: openalea/github-action-conda-build/.github/workflows/conda-package-build.yml@main + secrets: + anaconda_token: ${{ secrets.ANACONDA_TOKEN }}