forked from onemoola/newspy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(workflow): do not modify and commit the toml version, publish wit… (
- Loading branch information
Showing
1 changed file
with
2 additions
and
18 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 |
---|---|---|
|
@@ -7,7 +7,6 @@ jobs: | |
deploy: | ||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
@@ -43,27 +42,12 @@ jobs: | |
virtualenvs-in-project: true | ||
installer-parallel: true | ||
|
||
- name: Configure Git | ||
run: | | ||
git config --global user.name "newspy" | ||
git config --global user.email "[email protected]" | ||
git checkout release | ||
- name: Bump version | ||
run: | | ||
poetry version ${{ env.VERSION }} | ||
git add pyproject.toml | ||
git commit -m "chore: bump version to ${{ env.VERSION }}" | ||
git push origin release | ||
- name: Install dependencies | ||
run: poetry install --no-interaction --no-root | ||
|
||
- name: Install project | ||
run: poetry install --no-interaction | ||
|
||
- name: Build and publish | ||
run: | | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | ||
poetry publish --build | ||
env: | ||
POETRY_VERSION: ${{ env.VERSION }} |