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
23 changes: 7 additions & 16 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,17 @@ jobs:
run: |
pip install twine
twine upload --verbose --repository pypi dist/*

- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@matterandform.net'
git add .
git commit -m "Publish new version to PyPi [skip ci]"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Extract version
id: extract_version
run: |
CURRENT_VERSION=$(grep -oP "(?<=__version__ = ')[^']*" ./three/__init__.py)
echo "TAG=$CURRENT_VERSION" >> $GITHUB_ENV

- name: Create a Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ env.TAG }}
- name: Create Release
run: |
gh release create ${{ env.TAG }} \
--generate-notes \
--title "${{ env.TAG }}"
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.10'
__version__ = '8.20.11'