File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,41 +119,3 @@ jobs:
119119 --dict-name dict1
120120 grep -q "hello bar world" "$workdir/sample.txt" || { echo "replacement failed"; cat "$workdir/sample.txt"; exit 1; }
121121 rm -rf "$workdir"
122-
123- deploy :
124- if : github.ref == 'refs/heads/main' && github.event_name == 'push'
125- runs-on : ubuntu-latest
126- needs : [test, security, integration]
127- environment : pypi
128- permissions :
129- contents : write
130- id-token : write
131- steps :
132- - uses : actions/checkout@v4
133-
134- - name : Setup Python
135- uses : actions/setup-python@v5
136- with :
137- python-version : " 3.12"
138-
139- - name : Install dependencies
140- run : |
141- python -m pip install --upgrade pip
142- pip install -e ".[dev]" build
143-
144- - name : Build package
145- run : |
146- python -m build
147-
148- - name : Publish to PyPI
149- uses : pypa/gh-action-pypi-publish@release/v1
150-
151- - name : Create GitHub Release
152- uses : softprops/action-gh-release@v2
153- with :
154- generate_release_notes : true
155- files : |
156- dist/*.whl
157- dist/*.tar.gz
158- env :
159- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments