Skip to content

Commit

Permalink
Add CICD workflow to build, publish releases
Browse files Browse the repository at this point in the history
  • Loading branch information
brews committed Feb 26, 2022
1 parent dccae5b commit e80c2ed
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PyPI Package Release

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: x64
cache: 'pip'
cache-dependency-path: 'requirements-dev.txt'
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Build and publish release
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
twine upload dist/*
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
black
build
flake8
intake_esm
pytest
Expand Down

0 comments on commit e80c2ed

Please sign in to comment.