Skip to content

v23.08.1

v23.08.1 #31

Workflow file for this run

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
name: Release
on:
release:
types: [published]
workflow_dispatch:
defaults:
run:
shell: bash -l {0} # required for conda env
jobs:
build_conda:
name: Conda build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0 # history required so conda can determine version
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: build-env
create-args: >-
python=3.10
conda-build
boa
- run: conda mambabuild --channel conda-forge --channel scipp --python=3.10 --no-anaconda-upload --override-channels --output-folder conda/package conda
- uses: actions/upload-artifact@v3
with:
name: conda-package-noarch
path: conda/package/*/plopp*.tar.bz2
build_wheels:
name: Wheels
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # history required so setuptools_scm can determine version
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements/wheels.txt
- name: Build wheels
run: python -m build
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
upload_packages:
name: Deploy packages
needs: [build_conda, build_wheels]
runs-on: ubuntu-22.04
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.10'
- run: conda install -c conda-forge --yes anaconda-client
- run: anaconda --token ${{ secrets.ANACONDATOKEN }} upload --user scipp --label main $(ls conda-package-*/*/*.tar.bz2)
- uses: actions/setup-python@v3
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
docs:
needs: upload_packages
uses: ./.github/workflows/docs.yml
with:
publish: ${{ github.event_name == 'release' && github.event.action == 'published' }}
secrets: inherit