v1.3.4 Bugfix release #16
Workflow file for this run
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
name: Conda | |
on: | |
release: | |
types: ['released', 'prereleased'] | |
# workflow_dispatch: # Un comment line if you also want to trigger action manually | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
conda_deployment_with_new_tag: | |
name: Conda deployment of package for platform ${{ matrix.os }} with Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
python-version: ["3.10"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Conda environment creation and activation | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
environment-file: recipe/build-env.yml # Path to the build conda environment | |
activate-environment: build-environment | |
auto-update-conda: true | |
auto-activate-base: false | |
show-channel-urls: true | |
- name: Set VERSION environment variable | |
run: | | |
export VERSION=`python setup.py --version` | |
echo "VERSION=$VERSION" >> "$GITHUB_ENV" | |
- name: Build and upload the conda packages | |
uses: uibcdf/action-build-and-upload-conda-packages@v1.1-beta.1 | |
with: | |
meta_yaml_dir: recipe | |
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix` | |
user: phygbu | |
label: auto | |
overwrite: true | |
token: ${{ secrets.ANACONDA }} # Replace with the right name of your secret | |
- name: Build and upload wheel | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
run: | | |
cd /home/runner/work/stonerplots/stonerplots | |
conda info | |
python -m build | |
twine upload dist/* |