Skip to content

Add faceted dim csv (#2) #23

Add faceted dim csv (#2)

Add faceted dim csv (#2) #23

Workflow file for this run

# Builds publishes to testpypi.org on every commit. On tagged commits, also publishes to pypi.org.
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
name: Build and release 🐍 πŸ“¦
on:
push:
branches:
- main
release:
types: [published]
jobs:
build-n-publish:
name: Build and release 🐍 πŸ“¦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: python -m pip install build --user
- run: python -m build
- name: Upload to Test PyPI
if: github.repository_owner == 'tsdat'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Upload to PyPI (tagged release only)
if:
github.repository_owner == 'tsdat' && github.event_name == 'release' &&
github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}