Skip to content

Commit

Permalink
Update conda-package-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fredboudon committed Jan 23, 2024
1 parent 57cc08e commit e8b81de
Showing 1 changed file with 13 additions and 60 deletions.
73 changes: 13 additions & 60 deletions .github/workflows/conda-package-build.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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
jobs:
build:
uses: openalea/github-action-conda-build/.github/workflows/conda-package-build.yml@main
secrets:
anaconda_token: ${{ secrets.ANACONDA_TOKEN }}

0 comments on commit e8b81de

Please sign in to comment.