Skip to content

Commit

Permalink
Merge pull request #92 from Deltares/feature/DEI-161-remove-version-b…
Browse files Browse the repository at this point in the history
…ump-from-release

Remove version bump from release.yaml. Happens now for each merged PR
  • Loading branch information
mKlapwijk authored Jan 16, 2024
2 parents 0f7f5e8 + 7bbe737 commit cbd647c
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This workflow should be triggered when a release of the main is needed.
# It bumps the pyproject.toml version (major
# Using this version it creates a tag and a release
# It creates a tag and regenerates the documentation to generate a release.
# It does not bump the version number, that happens for the merged pull request.

name: Release major or minor version (create tag and bump poetry version)
name: Release major or minor version (create tag and documentation)

on:
workflow_dispatch:
Expand All @@ -29,18 +29,6 @@ jobs:
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.4.2
- name: bump up patch version
run: |
git config user.name github-actions
git config user.email github-actions@github.com
poetry version ${{ github.event.inputs.release_type }}
PROJECT_VERSION=$(poetry version --short)
echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV
sed -i "1 s/.*/version: $PROJECT_VERSION/" template_input.yaml
git add template_input.yaml
git add pyproject.toml
git commit -m "bump up ${{ github.event.inputs.release_type }} version from release workflow: version $PROJECT_VERSION"
git push
- name: Create Release
uses: actions/create-release@latest
env:
Expand Down

0 comments on commit cbd647c

Please sign in to comment.