Skip to content

update workflow environments #38

update workflow environments

update workflow environments #38

Workflow file for this run

name: build
on:
release:
types:
- released
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
build:
name: build package
runs-on: ubuntu-latest
steps:
- uses: mamba-org/setup-micromamba@v1
with:
condarc: |
channels:
- conda-forge
environment-name: build
create-args: >-
build
cache-downloads: true
cache-environment: true
init-shell: >-
bash
- uses: actions/checkout@v4
- run: build
- uses: actions/upload-artifact@v4
with:
name: stormevents
path: dist/
- if: github.event_name == 'release' && github.event.action == 'released'
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}