test.pypi token
@@ -14,7 +14,7 @@ permissions:
jobs:
call-test-build:
- uses: ./.github/workflows/create_artifacts.yml # testbuild.yml
+ uses: ./.github/workflows/testbuild.yml
check-artifacts:
needs: call-test-build
@@ -25,25 +25,17 @@ jobs:
with:
path: artifacts
- name: List files
- run: ls -R
-
-
- # steps:
- # - uses: actions/checkout@v3
- # with:
- # fetch-depth: 0
- # - name: Set up Python
- # uses: actions/setup-python@v3
- # with:
- # python-version: '3.x'
- # - name: Install dependencies
- # run: |
- # python -m pip install --upgrade pip
- # pip install build
- # - name: Build package
- # run: python -m build
- # - name: Publish package
- # uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
- # with:
- # user: __token__
- # password: ${{ secrets.PYPI_API_TOKEN }}
+ run: ls -R artifacts
+ - name: Gather artifacts
+ run: |
+ mkdir dist
+ mv artifacts/source/*.tar.gz dist/
+ mv artifacts/wheels-macos-latest/*.whl dist/
+ mv artifacts/wheels-ubuntu-latest/*.whl dist/
+ mv artifacts/wheels-windows-latest/*.whl dist/
+ - name: Publish package
+ uses: pypa/gh-action-pypi-publish@release/v1.5.1
+ with:
+ verbose: true
+ password: ${{ secrets.API_TOKEN_TEST_PYPI }}
+ repository_url: https://test.pypi.org/legacy/
