-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,45 +78,26 @@ jobs: | |
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
# - name: Python Semantic Release | ||
# id: release | ||
# uses: python-semantic-release/[email protected] | ||
# with: | ||
# github_token: ${{ secrets.GH_TOKEN }} | ||
# push: false | ||
# commit_author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" | ||
|
||
- name: Python Semantic Release | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
push: false | ||
- name: Install GitHub CLI | ||
run: | | ||
sudo apt update | ||
sudo apt install -y gh | ||
- name: Authenticate GitHub CLI | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: | | ||
gh auth status | ||
- name: Prepare Release with Semantic Release | ||
id: release | ||
run: | | ||
RELEASE_BRANCH="release/$(python-semantic-release version --noop)" | ||
git checkout -b "$RELEASE_BRANCH" | ||
python-semantic-release changelog | ||
git add . | ||
git commit -m "chore(release): prepare release $(python-semantic-release version --noop)" | ||
git push origin "$RELEASE_BRANCH" | ||
- name: Create Merge Request | ||
run: | | ||
gh pr create \ | ||
--base main \ | ||
--head "$RELEASE_BRANCH" \ | ||
--title "Release $(python-semantic-release version --noop)" \ | ||
--title "Release $(python-semantic-release version)" \ | ||
--body "This PR contains the release changes for version $(python-semantic-release version --noop)." | ||
# - name: Publish package distributions to PyPI | ||
# uses: pypa/[email protected] | ||
|