Skip to content

Commit

Permalink
GitHub CI driven releases
Browse files Browse the repository at this point in the history
  • Loading branch information
omad committed Nov 19, 2024
1 parent ea47b64 commit caf524f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/on-release-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: release-main

on:
release:
types: [published]
branches: [main]

jobs:
publish:
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: required for trusted publishing to PyPI
id-token: write
needs: [set-version]
steps:
- name: Check out
uses: actions/checkout@v4

- name: Set up the environment
uses: ./.github/actions/setup-python-env

- name: Build package
run: uvx --from build pyproject-build --installer uv

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies = [
"pandas",
"toolz",
"xarray>=0.19",
"coverage>=7.6.7",
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
Expand All @@ -35,9 +34,6 @@ Homepage = "https://github.com/opendatacube/odc-loader/"
[project.optional-dependencies]
botocore = ["botocore"]

# [project.scripts]
# odc-loader = "odc_loader:main"

[build-system]
requires = ["setuptools>=69", "setuptools-scm"]
build-backend = "setuptools.build_meta"
Expand Down
2 changes: 0 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit caf524f

Please sign in to comment.