Skip to content

Pre-release 0.6.0rc4 #37

Pre-release 0.6.0rc4

Pre-release 0.6.0rc4 #37

Workflow file for this run

---
name: Build & upload PyPI package
on:
push:
branches: [main]
tags: ["*"]
release:
types:
- published
workflow_dispatch:
# When a PR is updated, cancel the jobs from the previous version. Merges
# do not define head_ref, so use run_id to never cancel those jobs.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
# Always build & lint package.
build-package:
name: Build & verify package
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Check out
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: hynek/build-and-inspect-python-package@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.0
# Upload to real PyPI on GitHub Releases.
release-pypi:
name: Publish released package to pypi.org
timeout-minutes: 15
environment: release-pypi
if: github.repository_owner == 'opendatacube' && github.event.action == 'published'
runs-on: ubuntu-latest
needs: build-package
permissions:
id-token: write
steps:
- name: Download packages built by build-and-inspect-python-package
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: Packages
path: dist
# This defaults to OIDC identification between GitHub and PyPI
- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4