From 900e1b358780a3ecb072a897959fa65b44717364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=B6jdh?= Date: Thu, 8 Oct 2026 12:09:06 +0200 Subject: [PATCH] added missing deploy workflows (#1612) --- .github/workflows/conda_deploy_library.yaml | 47 +++++++++++++++++++++ .github/workflows/conda_deploy_slsdet.yaml | 47 +++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 .github/workflows/conda_deploy_library.yaml create mode 100644 .github/workflows/conda_deploy_slsdet.yaml diff --git a/.github/workflows/conda_deploy_library.yaml b/.github/workflows/conda_deploy_library.yaml new file mode 100644 index 000000000..68d046aff --- /dev/null +++ b/.github/workflows/conda_deploy_library.yaml @@ -0,0 +1,47 @@ +name: Build and deploy slsdetlib + +on: + release: + types: + - published + +jobs: + build: + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, ] # macos-12, windows-2019] + python-version: ["3.12",] + + runs-on: ${{ matrix.platform }} + + # The setup-miniconda action needs this to activate miniconda + defaults: + run: + shell: "bash -l {0}" + + steps: + - uses: actions/checkout@v6 + + - name: Get conda + uses: conda-incubator/setup-miniconda@v4 + with: + python-version: ${{ matrix.python-version }} + channels: conda-forge + + - name: Prepare + run: conda install conda-build conda-verify pytest anaconda-client + + - name: Enable upload + run: conda config --set anaconda_upload yes + + - name: Build + env: + CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} + run: conda-build conda-recipes/main-library --user slsdetectorgroup --token ${CONDA_TOKEN} --output-folder build_output + + - name: Upload all Conda to github as artifacts + uses: actions/upload-artifact@v7 + with: + name: conda-packages + path: build_output/** # Uploads all packages \ No newline at end of file diff --git a/.github/workflows/conda_deploy_slsdet.yaml b/.github/workflows/conda_deploy_slsdet.yaml new file mode 100644 index 000000000..4207132bf --- /dev/null +++ b/.github/workflows/conda_deploy_slsdet.yaml @@ -0,0 +1,47 @@ +name: deploy slsdet + +on: + release: + types: + - published + +jobs: + build: + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, ] # macos-12, windows-2019] + python-version: ["3.12",] + + runs-on: ${{ matrix.platform }} + + # The setup-miniconda action needs this to activate miniconda + defaults: + run: + shell: "bash -l {0}" + + steps: + - uses: actions/checkout@v6 + + - name: Get conda + uses: conda-incubator/setup-miniconda@v4 + with: + python-version: ${{ matrix.python-version }} + channels: conda-forge + + - name: Prepare + run: conda install conda-build conda-verify pytest anaconda-client + + - name: Enable upload + run: conda config --set anaconda_upload yes + + - name: Build + env: + CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} + run: conda-build conda-recipes/python-client --user slsdetectorgroup --token ${CONDA_TOKEN} --output-folder build_output + + - name: Upload all Conda packages + uses: actions/upload-artifact@v7 + with: + name: conda-packages + path: build_output/** # Uploads all packages \ No newline at end of file