-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from haasad/release-pipelines
Rework release pipelines
- Loading branch information
Showing
5 changed files
with
27 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,31 @@ | ||
name: conda-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- conda-release | ||
tags: | ||
- 'v*' | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up miniconda with python 3.9 | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: 3.9 | ||
activate-environment: test | ||
environment-file: environment.yml | ||
auto-activate-base: false | ||
activate-environment: build | ||
- name: Install build tools | ||
shell: bash -l {0} | ||
run: | | ||
conda install conda-build anaconda-client conda-verify | ||
conda install conda-build anaconda-client conda-verify grayskull | ||
- name: Generate conda recipe | ||
run: | | ||
grayskull pypi https://github.com/haasad/PyPardiso --sections {package,source,build,requirements,about} | ||
- name: Build conda package | ||
shell: bash -l {0} | ||
run: | | ||
conda build . | ||
conda build PyPardiso | ||
- name: Upload to haasad conda channel | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
shell: bash -l {0} | ||
run: | | ||
anaconda -t ${{ secrets.CONDA_TOKEN }} upload /usr/share/miniconda/envs/test/conda-bld/noarch/*.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters