Skip to content

Commit

Permalink
Add initial version of release action
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarhane committed May 3, 2024
1 parent bf53963 commit a6ec10a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/patch-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Patch release 🚀

on:
workflow_dispatch:

jobs:
bump-version:
outputs:
version: ${{ steps.get-version.outputs.version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.2
virtualenvs-create: false
virtualenvs-in-project: false
installer-parallel: true

- name: Bump version
run: poetry version patch

- name: Get version
id: get-version
run: echo version=`poetry version -s` >> "$GITHUB_OUTPUT"
- name: Print varaibles
run: |
echo Version: ${{ steps.get-version.outputs.version }}
# - uses: EndBug/add-and-commit@v9
# with:
# author_name: "Neo4j-GenAI GitHub Action"
# author_email: "[email protected]"
# message: "Bump version to ${{ steps.get-version.outputs.version }}}"
# add: "pyproject.toml"
# tag: "${{ steps.get-version.outputs.version }}"

0 comments on commit a6ec10a

Please sign in to comment.