Skip to content

Fix bug affecting latest Sandbox image, update notebook code (#1237) #148

Fix bug affecting latest Sandbox image, update notebook code (#1237)

Fix bug affecting latest Sandbox image, update notebook code (#1237) #148

Workflow file for this run

name: Publish dea-tools to PyPI
on:
push:
branches:
- develop
paths:
- 'Tools/**'
- '.github/workflows/publish.yml'
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Get history and tags for SCM versioning
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Build dea-tools
run: |
python3 -m pip install setuptools_scm build
python3 -m setuptools_scm
cd Tools
python3 -m pip install pip==22.0.4
python3 -m pip install --use-feature=in-tree-build --no-deps .
python3 -c "import dea_tools; print(dea_tools.__version__)"
python3 -m build
- name: pypi-publish
# You may pin to the exact commit or the version.
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
# PyPI access token
password: ${{ secrets.PYPI_API_TOKEN }}
# The target directory for distribution
packages_dir: Tools/dist
# Check metadata before uploading
verify_metadata: true
# Do not fail if a Python package distribution exists in the target package index
skip_existing: false
# Show verbose output.
verbose: true