-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
A.Shpak
committed
Nov 14, 2024
1 parent
0517dc8
commit 8a3c6a0
Showing
17 changed files
with
338 additions
and
780 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,32 +1,25 @@ | ||
--- | ||
name: PyPI upload | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: dependencies | ||
run: | | ||
python -m pip install poetry==1.1.7 | ||
- | ||
name: build | ||
run: poetry build | ||
- | ||
name: publish | ||
python-version: "3.10" | ||
- uses: actions/checkout@v3 | ||
- name: Extract branch name | ||
shell: bash | ||
run: | | ||
poetry config http-basic.pypi ${{ secrets.PYPI_LOGIN }} ${{ secrets.PYPI_PASS }} | ||
poetry publish | ||
echo "##[set-output name=ver;]$(echo ${GITHUB_REF#refs/*/})" | ||
id: extract_name_and_version | ||
- run: sed -i 's/0.1.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' pyproject.toml | ||
- run: head -n 10 pyproject.toml | ||
- run: sed -i 's/0.1.0/'"${{ steps.extract_name_and_version.outputs.ver }}"'/' curlify3/__init__.py | ||
- run: python -m pip install poetry~=1.8.0 | ||
- run: poetry build | ||
- run: poetry config http-basic.pypi __token__ ${{ secrets.PYPI_PASS }} | ||
- run: poetry publish |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.