Skip to content

Commit

Permalink
PyPI publication (#156)
Browse files Browse the repository at this point in the history
* add description content type

* add skip-existing flag to pypi upload

Co-authored-by: Paul Haesler <[email protected]>
Co-authored-by: Ariana Barzinpour <[email protected]>
Co-authored-by: Damien Ayers <[email protected]>
  • Loading branch information
4 people authored Oct 30, 2022
1 parent f6c2a62 commit 165b6ef
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish to PyPI

on:
release:
types: [published]

jobs:
publish_pypi:
if: github.repository == 'opendatacube/datacube-alchemist'

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install Twine
run: |
python -m pip install --upgrade twine
python -m pip freeze
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
skip_existing: true
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ license = Apache License 2.0
description = Batch process Open Data Cube datasets
keywords = datacube-alchemist,opendatacube
url = https://github.com/opendatacube/datacube-alchemist
long_description_content_type = text/markdown
long_description = file: README.md
classifiers =
Development Status :: 5 - Production/Stable
Expand Down

0 comments on commit 165b6ef

Please sign in to comment.