Skip to content

Publish meteor

Publish meteor #12

Workflow file for this run

name: Publish meteor
on:
release:
types: [created]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: aghozlane/meteor:latest
secrets: |
"github_token=${{ secrets.DOCKER_TOKEN }}"
build_conda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
environment-file: devtools/conda-envs/build_env.yaml # Path to the build conda environment
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload the conda packages
uses: uibcdf/[email protected]
with:
meta_yaml_dir: conda_recipe/meta.yaml
platform_linux-64: true
platform_osx-64: true
user: aghozlane
label: auto
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
# see details (matrix, python-version, python-version-file, etc.)
# https://github.com/actions/setup-python
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Build and publish to PyPI
run: |
poetry config http-basic.pypi __token__ ${{ secrets.PYPI_TOKEN }}
poetry build -C meteor
poetry publish -C meteor