-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: try to fix pragma-utils error into test-pypi job (#149)
* feat: add id-token permission * feat: pypi test publisher, some permissions * fix: remove reusable workflow from publisher * feat: let's test * feat: move publisher.yml into release.yml, remove workflow call * fix: remove dist/ into root folder * fix: remove env, url * fix: add password to pypi_test * fix: add default working directory * fix: working directory * fix: dist path * fix: dist path, upload complete folder * fix: dist path, only dist folder * fix: add verbose * feat: poetry monorepo plugin * feat: pre-release workflow for test-pypi, poetry pipeline for publishment --------- Co-authored-by: 0xevolve <Artevolve@yahoo.com>
- Loading branch information
Showing
3 changed files
with
46 additions
and
58 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Task - Publish Package to Test PyPi | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
PYTHON_VERSION: 3.12.4 | ||
|
||
defaults: | ||
run: | ||
working-directory: pragma-sdk | ||
|
||
jobs: | ||
test_pypi_publish: | ||
name: Upload package to Test PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: CfirTsabari/actions-pipx@v1 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: "poetry" | ||
- run: pipx inject poetry poetry-monorepo-dependency-plugin | ||
- run: poetry config repositories.test-pypi https://test.pypi.org/legacy/ | ||
- run: poetry config pypi-token.test-pypi ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
- run: poetry build -f sdist | ||
- run: poetry publish -r test-pypi |
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