Skip to content

Commit

Permalink
fix syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbaird committed Oct 27, 2021
1 parent 9957402 commit c113c6e
Showing 1 changed file with 51 additions and 36 deletions.
87 changes: 51 additions & 36 deletions .github/workflows/manual-conda-publish.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,58 @@
name: Test, Publish, and Release
name: Publish to Anaconda Manually

on: workflow_dispatch

jobs:
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
activate-environment: mat_discover

- name: Install dependencies
shell: bash -l {0}
run: |
conda install git conda-build conda-verify anaconda-client
conda install -c conda-forge grayskull flit coveralls
conda install -c sgbaird pqdm elmd
- name: Build and publish
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
sed -i 's/- kaleido/- python-kaleido/g' meta.yaml # find-replace kaleido-->python-kaleido
conda config --append channels conda-forge
conda config --append channels sgbaird
conda config --set anaconda_upload yes
mkdir scratch
cp LICENSE meta.yaml scratch/
cd scratch
conda build .
cd ..
- name: Upload to coveralls
shell: bash -l {0}
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

manual-conda-publish:
runs-on: ubuntu-latest
strategy:
max-parallel: 5

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
activate-environment: mat_discover

- name: Install dependencies
shell: bash -l {0}
run: |
conda install git conda-build conda-verify anaconda-client
conda install -c conda-forge grayskull flit coveralls
conda install -c sgbaird pqdm elmd
- name: Build and publish
shell: bash -l {0}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
run: |
sed -i 's/- kaleido/- python-kaleido/g' meta.yaml # find-replace kaleido-->python-kaleido
conda config --append channels conda-forge
conda config --append channels sgbaird
conda config --set anaconda_upload yes
mkdir scratch
cp LICENSE meta.yaml scratch/
cd scratch
conda build .
cd ..
- name: Upload to coveralls
shell: bash -l {0}
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# grayskull pypi mat_discover

# - name: Create Release # https://github.com/softprops/action-gh-release
Expand Down

0 comments on commit c113c6e

Please sign in to comment.