Skip to content

Commit 1e441c9

Browse files
committed
updated workflow
1 parent 99bbf5c commit 1e441c9

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,6 @@ jobs:
3535
sed -i "s/^version = .*/version = \"$VERSION\"/" pyproject.toml
3636
cat pyproject.toml | grep version
3737
38-
- name: Commit version bump
39-
run: |
40-
git config user.name "github-actions[bot]"
41-
git config user.email "github-actions[bot]@users.noreply.github.com"
42-
git add pyproject.toml
43-
git commit -m "chore: bump version to ${{ steps.get_version.outputs.version }}" || echo "No changes to commit"
44-
45-
- name: Push changes
46-
uses: ad-m/github-push-action@master
47-
with:
48-
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
branch: main
50-
tags: false
51-
5238
- name: Install build dependencies
5339
run: |
5440
python -m pip install --upgrade pip
@@ -68,3 +54,11 @@ jobs:
6854
git add pyproject.toml
6955
git commit -m "chore: bump version to ${{ steps.get_version.outputs.version }}" || echo "No changes to commit"
7056
git push origin HEAD:main || echo "Nothing to push"
57+
58+
- name: Create GitHub Release
59+
uses: softprops/action-gh-release@v1
60+
with:
61+
files: dist/*
62+
generate_release_notes: true
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)