mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-05 22:16:52 +00:00
feature: Support new release workflow (#94)
Some checks failed
Python CI / build (push) Has been cancelled
Some checks failed
Python CI / build (push) Has been cancelled
* refacotr to the manual release workflow * add tag after all of the python package published * simplify input var reference * add type to input var * add type to input var * add type to input var
This commit is contained in:
parent
0f10697640
commit
175a631c72
25
.github/workflows/release.yaml
vendored
25
.github/workflows/release.yaml
vendored
@ -1,8 +1,11 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
releaseVersion:
|
||||
description: 'The target version you want to update and release'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
set-package-matrix:
|
||||
@ -44,11 +47,25 @@ jobs:
|
||||
pip install setuptools wheel build
|
||||
- name: Build
|
||||
run: |
|
||||
echo $GITHUB_REF_NAME >> ${{ matrix.package-name }}/.version
|
||||
echo ${{ inputs.releaseVersion }} >> ${{ matrix.package-name }}/.version
|
||||
cp LICENSE NOTICE ${{ matrix.package-name }}/
|
||||
python -m build ${{ matrix.package-name }} --outdir dist/
|
||||
- name: Publish
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
skip-existing: true
|
||||
add-tag:
|
||||
runs-on: ubuntu-latest
|
||||
needs: deployment
|
||||
steps:
|
||||
- name: Checkout latest code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- 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 ${{ inputs.releaseVersion }}
|
||||
git push origin ${{ inputs.releaseVersion }}
|
||||
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -64,3 +64,4 @@ target/
|
||||
|
||||
#Ipython Notebook
|
||||
.ipynb_checkpoints
|
||||
.idea
|
||||
Loading…
Reference in New Issue
Block a user