mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
refacotr to the manual release workflow
This commit is contained in:
parent
0f10697640
commit
c5b8c19ebc
17
.github/workflows/release.yaml
vendored
17
.github/workflows/release.yaml
vendored
@ -1,8 +1,10 @@
|
|||||||
name: Release
|
name: Release
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
tags:
|
inputs:
|
||||||
- '*'
|
releaseVersion:
|
||||||
|
description: 'The target version you want to update and release'
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
set-package-matrix:
|
set-package-matrix:
|
||||||
@ -34,6 +36,13 @@ jobs:
|
|||||||
ref: main
|
ref: main
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
token: ${{ secrets.CHECKOUT_PAT }}
|
token: ${{ secrets.CHECKOUT_PAT }}
|
||||||
|
- name: Add tag and push to the repository
|
||||||
|
run: |
|
||||||
|
git config user.name "API Team"
|
||||||
|
git config user.email "api-team@thousandeyes.com"
|
||||||
|
|
||||||
|
git tag ${{ github.event.inputs.releaseVersion }}
|
||||||
|
git push origin ${{ github.event.inputs.releaseVersion }}
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
@ -44,7 +53,7 @@ jobs:
|
|||||||
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.event.inputs.releaseVersion }} >> ${{ matrix.package-name }}/.version
|
||||||
cp LICENSE NOTICE ${{ 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user