mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-05 23:45:30 +00:00
Update release.yaml
This commit is contained in:
parent
9dc63b7b18
commit
ec93301496
22
.github/workflows/release.yaml
vendored
22
.github/workflows/release.yaml
vendored
@ -18,34 +18,42 @@ jobs:
|
|||||||
FOLDERS_JSON=$(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" | cut -c 3- | jq -R -s -c 'split("\n")[:-1]')
|
FOLDERS_JSON=$(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" | cut -c 3- | jq -R -s -c 'split("\n")[:-1]')
|
||||||
echo "packages=$FOLDERS_JSON" >> "$GITHUB_OUTPUT"
|
echo "packages=$FOLDERS_JSON" >> "$GITHUB_OUTPUT"
|
||||||
deployment:
|
deployment:
|
||||||
if: github.event.pull_request.merged == true
|
#if: github.event.pull_request.merged == true
|
||||||
needs: set-package-matrix
|
needs: set-package-matrix
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
package-name: ${{ fromJSON(needs.set-package-matrix.outputs.packages) }}
|
package-name: [thousandeyes-sdk-administrative, thousandeyes-sdk-instant-tests, thousandeyes-sdk-usage, thousandeyes-sdk-core]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
environment:
|
environment:
|
||||||
name: release
|
name: test
|
||||||
url: https://pypi.org/p/${{ matrix.package-name }}
|
url: https://test.pypi.org/p/${{ matrix.package-name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: main
|
||||||
|
python-version: '3.11'
|
||||||
|
token: ${{ secrets.TEST_PAT }}
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
cache: pip
|
cache: pip
|
||||||
|
python-version: '3.11'
|
||||||
cache-dependency-path: '**/pyproject.toml'
|
cache-dependency-path: '**/pyproject.toml'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install setuptools wheel build
|
pip install setuptools wheel build
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
echo $GITHUB_REF_NAME >> ${{ matrix.package-name }}/.version
|
echo "$GITHUB_REF_NAME" >> ${{ matrix.package-name }}/.version
|
||||||
cp LICENSE NOTICE ${{ matrix.package-name }}/
|
|
||||||
|
ls ${{ matrix.package-name }}/
|
||||||
|
cp LICENSE NOTICE ${{ matrix.package-name }}/
|
||||||
python -m build ${{ matrix.package-name }} --outdir dist/
|
python -m build ${{ matrix.package-name }} --outdir dist/
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
|
repository-url: https://test.pypi.org/legacy/
|
||||||
skip-existing: true
|
skip-existing: true
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user