Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CD

on:
push:
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,17 @@ jobs:
CURRENT_VERSION=$(grep -oP "(?<=__version__ = ')[^']*" ./three/__init__.py)
echo "VERSION=$CURRENT_VERSION" >> $GITHUB_ENV

- name: Create Pull Request to merge develop into release
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "CI: Merge develop into release"
base: "develop"
branch: "release"
title: "New Release Candidate v${{ env.VERSION }}"
body: "This is an new release candidate for three-python. Merging this will distribute the new version to pypi."
# Create a pull request for master
- name: Create Pull Request
run: |
echo "Switching to branch..."
git switch -c RC/${{ env.VERSION }}
git push --set-upstream origin RC/${{ env.VERSION }}

echo "Creating a pull request..."
TITLE="Release Candidate for three-python-library - ${{ env.VERSION }}"
BODY="Generated automatically by Github Actions Bot.
Version - ${{ env.VERSION }}"
gh pr create --title "$TITLE" --body "$BODY" --base release --head RC/${{ env.VERSION }} --label "rc"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion three/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '8.20.8'
__version__ = '8.20.10'