Skip to content

Commit 29070e3

Browse files
committed
Update author information in pyproject.toml and modify GitHub Actions workflow for publishing
- Changed the author name and email in pyproject.toml to reflect the correct contributor. - Renamed the GitHub Actions workflow for publishing to clarify the use of tokens for authentication. - Removed unnecessary environment and permissions settings from the workflow to streamline the publishing process.
1 parent 04d12c8 commit 29070e3

3 files changed

Lines changed: 4 additions & 135 deletions

File tree

.github/workflows/publish-with-token.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to PyPI
1+
name: Publish to PyPI (Token)
22

33
on:
44
release:
@@ -56,13 +56,6 @@ jobs:
5656
needs: [build]
5757
runs-on: ubuntu-latest
5858

59-
environment:
60-
name: testpypi
61-
url: https://test.pypi.org/p/project-vectorizer
62-
63-
permissions:
64-
id-token: write
65-
6659
steps:
6760
- name: Download artifacts
6861
uses: actions/download-artifact@v4
@@ -74,20 +67,14 @@ jobs:
7467
uses: pypa/gh-action-pypi-publish@release/v1
7568
with:
7669
repository-url: https://test.pypi.org/legacy/
70+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
7771

7872
publish-to-pypi:
7973
name: Publish to PyPI
8074
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi')
8175
needs: [build]
8276
runs-on: ubuntu-latest
8377

84-
environment:
85-
name: pypi
86-
url: https://pypi.org/p/project-vectorizer
87-
88-
permissions:
89-
id-token: write
90-
9178
steps:
9279
- name: Download artifacts
9380
uses: actions/download-artifact@v4
@@ -97,35 +84,5 @@ jobs:
9784

9885
- name: Publish to PyPI
9986
uses: pypa/gh-action-pypi-publish@release/v1
100-
101-
github-release:
102-
name: Sign and upload to GitHub Release
103-
if: github.event_name == 'release'
104-
needs: [publish-to-pypi]
105-
runs-on: ubuntu-latest
106-
107-
permissions:
108-
contents: write
109-
id-token: write
110-
111-
steps:
112-
- name: Download artifacts
113-
uses: actions/download-artifact@v4
114-
with:
115-
name: python-package-distributions
116-
path: dist/
117-
118-
- name: Sign the distributions with Sigstore
119-
uses: sigstore/gh-action-sigstore-python@v2.1.1
12087
with:
121-
inputs: >-
122-
./dist/*.tar.gz
123-
./dist/*.whl
124-
125-
- name: Upload artifact signatures to GitHub Release
126-
env:
127-
GITHUB_TOKEN: ${{ github.token }}
128-
run: >-
129-
gh release upload
130-
'${{ github.ref_name }}' dist/**
131-
--repo '${{ github.repository }}'
88+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "project-vectorizer"
77
version = "0.1.0"
88
description = "CLI tool for vectorizing codebases and serving them via MCP"
9-
authors = [{name = "Your Name", email = "your.email@example.com"}]
9+
authors = [{name = "StarkBak", email = "bak.stark06@gmail.com"}]
1010
license = {text = "MIT"}
1111
readme = "README.md"
1212
requires-python = ">=3.9"

0 commit comments

Comments
 (0)