mirror of
https://github.com/pypa/gh-action-pypi-publish.git
synced 2024-11-22 16:41:07 -05:00
🎨 Put devpi creds into reusable vars @ GHA
This commit is contained in:
parent
08af49986e
commit
ee83abeb35
1 changed files with 17 additions and 8 deletions
25
.github/workflows/self-smoke-test-action.yml
vendored
25
.github/workflows/self-smoke-test-action.yml
vendored
|
@ -7,6 +7,9 @@ on: # yamllint disable-line rule:truthy
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
devpi-password: abcd1234
|
||||||
|
devpi-username: root
|
||||||
|
|
||||||
FORCE_COLOR: 1 # Request colored output from CLI tools supporting it
|
FORCE_COLOR: 1 # Request colored output from CLI tools supporting it
|
||||||
MYPY_FORCE_COLOR: 1 # MyPy's color enforcement
|
MYPY_FORCE_COLOR: 1 # MyPy's color enforcement
|
||||||
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
||||||
|
@ -26,11 +29,19 @@ jobs:
|
||||||
smoke-test:
|
smoke-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
TWINE_REPOSITORY_URL: >-
|
||||||
|
http://devpi:${{
|
||||||
|
job.services.devpi.ports['3141']
|
||||||
|
}}/${{
|
||||||
|
env.devpi-username
|
||||||
|
}}/public/
|
||||||
|
|
||||||
services:
|
services:
|
||||||
devpi:
|
devpi:
|
||||||
image: muccg/devpi
|
image: muccg/devpi
|
||||||
env:
|
env:
|
||||||
DEVPI_PASSWORD: abcd1234
|
DEVPI_PASSWORD: ${{ env.devpi-password }}
|
||||||
ports:
|
ports:
|
||||||
- 3141
|
- 3141
|
||||||
|
|
||||||
|
@ -54,17 +65,15 @@ jobs:
|
||||||
- run: python3 -m build
|
- run: python3 -m build
|
||||||
- run: twine register dist/*.tar.gz
|
- run: twine register dist/*.tar.gz
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: root
|
TWINE_USERNAME: ${{ env.devpi-username }}
|
||||||
TWINE_PASSWORD: abcd1234
|
TWINE_PASSWORD: ${{ env.devpi-password }}
|
||||||
TWINE_REPOSITORY_URL: >-
|
|
||||||
http://localhost:${{ job.services.devpi.ports['3141'] }}/root/public/
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: test
|
path: test
|
||||||
- uses: ./test
|
- uses: ./test
|
||||||
with:
|
with:
|
||||||
user: root
|
user: ${{ env.devpi-username }}
|
||||||
password: abcd1234
|
password: ${{ env.devpi-password }}
|
||||||
repository_url: http://devpi:3141/root/public/
|
repository_url: ${{ env.TWINE_REPOSITORY_URL }}
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue