diff --git a/.github/workflows/manual-conda-publish.yml b/.github/workflows/manual-conda-publish.yml index 2bd883d..6c311aa 100644 --- a/.github/workflows/manual-conda-publish.yml +++ b/.github/workflows/manual-conda-publish.yml @@ -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