mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
update
This commit is contained in:
parent
d593bfeac8
commit
1c67b90fa2
23
.github/workflows/publish-to-pypi.yml
vendored
23
.github/workflows/publish-to-pypi.yml
vendored
@ -1,21 +1,26 @@
|
|||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
on: push
|
on:
|
||||||
|
- push
|
||||||
concurrency:
|
- workflow_dispatch:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
inputs:
|
||||||
cancel-in-progress: true
|
confirm_publish:
|
||||||
|
description: 'Type YES to confirm publishing to PyPI'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-n-publish:
|
build-n-publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.event.ref, 'refs/tags')
|
if: |
|
||||||
|
github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') ||
|
||||||
|
(github.event_name == 'workflow_dispatch' && inputs.confirm_publish == 'YES')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.10
|
||||||
- name: Build lagent
|
- name: Build lagent
|
||||||
run: |
|
run: |
|
||||||
pip install wheel
|
pip install wheel
|
||||||
|
Loading…
Reference in New Issue
Block a user