Skip to content

Commit

Permalink
Merge pull request #24 from openclimatefix/pypi
Browse files Browse the repository at this point in the history
add bump version and release yml
  • Loading branch information
peterdudfield authored Dec 19, 2023
2 parents 53e21d2 + 69dfa0f commit 51ae1f7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[bumpversion]
commit = True
tag = True
current_version = 0.0.1
message = Bump version: {current_version} → {new_version} [skip ci]

[bumpversion:file:setup.py]
search = version="{current_version}"
replace = version="{new_version}"
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Bump version and auto-release
on:
push:
branches:
- main

jobs:
bump-version:
uses: openclimatefix/.github/.github/workflows/[email protected]
secrets:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}

github-release:
needs: [ bump-version ]
uses: openclimatefix/.github/.github/workflows/[email protected]
with:
version: ${{ needs.bump-version.outputs.new_ver }}

publish-to-pypi:
needs: [ bump-version ]
uses: openclimatefix/.github/.github/workflows/[email protected]
with:
ref: main
secrets:
token: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 51ae1f7

Please sign in to comment.