-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 900 Bytes
/
auto_depoly.yml
File metadata and controls
41 lines (31 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Auto Build And Release To PyPI
on:
# 手动触发构建
workflow_dispatch:
# (从版本分支)创建 release 的时候触发 (release 版)
release:
types: [published]
# 把特性分支合并到 v* 版本分支时触发 (snapshot 版)
# pull_request:
# branches: [v*]
# 推送特性分支时触发 (snapshot 版)
# push:
# branches: [feature-*]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install build dependencies
run: pip install -U setuptools wheel build
- name: Build
run: python -m build .
- name: Publish
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
skip_existing: true