Replace travis-ci with github actions
This commit is contained in:
parent
b31f359ee7
commit
2ba0964e07
27
.github/workflows/deployment.yaml
vendored
Normal file
27
.github/workflows/deployment.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Deployment
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
publish-conda-package:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
$CONDA/bin/conda install --quiet --yes conda-build anaconda-client
|
||||
$CONDA/bin/conda config --append channels conda-forge
|
||||
$CONDA/bin/conda config --set anaconda_upload yes
|
||||
|
||||
- name: Build and upload
|
||||
env:
|
||||
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
|
||||
run: |
|
||||
$CONDA/bin/conda build --token $ANACONDA_TOKEN conda-recipe
|
31
.travis.yml
31
.travis.yml
@ -1,31 +0,0 @@
|
||||
language: python
|
||||
python:
|
||||
- 3.6
|
||||
|
||||
# Build only tagged commits
|
||||
if: tag IS present
|
||||
|
||||
before_install:
|
||||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
|
||||
- bash miniconda.sh -b -p $HOME/miniconda
|
||||
- export PATH="$HOME/miniconda/bin:$PATH"
|
||||
- conda config --append channels conda-forge
|
||||
- conda config --set always_yes yes
|
||||
- conda config --set anaconda_upload no
|
||||
|
||||
install:
|
||||
- conda update -q conda
|
||||
- conda install -q python=$TRAVIS_PYTHON_VERSION conda-build anaconda-client
|
||||
|
||||
script:
|
||||
- conda build conda-recipe
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: anaconda -t $ANACONDA_TOKEN upload $HOME/miniconda/conda-bld/**/pyzebra-*.tar.bz2
|
||||
on:
|
||||
branch: master
|
||||
tags: true
|
||||
|
||||
notifications:
|
||||
email: false
|
Loading…
x
Reference in New Issue
Block a user