Skip to content

Commit

Permalink
fix: use action
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L authored Dec 5, 2024
1 parent 7f1a0e1 commit f1be6eb
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f1be6eb

Please sign in to comment.