Skip to content

Merge pull request #186 from Anaconda-Platform/renovate/conda-incubat… #27

Merge pull request #186 from Anaconda-Platform/renovate/conda-incubat…

Merge pull request #186 from Anaconda-Platform/renovate/conda-incubat… #27

name: Merge to master and publish
on:
push:
branches:
- master
tags:
- '*'
jobs:
package:
runs-on: ubuntu-latest
# runs-on: self-hosted
# runs-on: self-hosted-amd64-small-privileged
# runs-on: self-hosted-amd64-large-privileged-on-demand-storage
defaults:
run:
shell: bash -el {0}
steps:
- name: Retrieve the source code
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
with:
fetch-depth: 0
- name: Install dependencies
# https://github.com/conda-incubator/setup-miniconda
uses: conda-incubator/setup-miniconda@030178870c779d9e5e1b4e563269f3aa69b04081 # v3
with:
channels: defaults
auto-activate-base: true
activate-environment: github.action
environment-file: environment.github.yml
- name: Conda Info
run: |
conda info
- name: Build Conda Package
run: |
mkdir build
conda build conda-recipe --output-folder build
- name: Upload to anaconda.org
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
anaconda --verbose --token $ANACONDA_TOKEN upload --user ae5-admin build/noarch/ae5-tools-*.tar.bz2 --force