-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (53 loc) · 1.42 KB
/
main.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name : Release
on:
push:
tags:
- "v*"
jobs:
build:
name: set env
runs-on: ubuntu-latest
steps:
- name : Checkout
uses : actions/checkout@v2
- name : set_up_python3.8
uses : actions/setup-python@v4
with :
python-version : 3.8
architecture: "x64"
- name: Install poetry
run: pipx install poetry
shell: bash
- name : Install dependance
run: poetry install
shell: bash
- name : Build dist
run : poetry build
shell: bash
# - name: upload artifact
# uses: actions/[email protected]
# with:
# tag_name: ${{steps.get_version.outputs.VERSION }}
# release_name: ${{steps.get_version.outputs.VERSION }}
# name: build_result
# path: dist/*
# - name: Download a Build Artifact
# uses: actions/[email protected]
# with:
# name: build_result
# - name : Check pwd
# run: pwd
# shell: bash
# - name : Show files
# run: ls -l
# shell: bash
- name : Realease whl
uses : ncipollo/[email protected]
with :
artifacts: "./dist/*.whl,./dist/*.tar.gz"
generateReleaseNotes: true
- name : Publish to pypi
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}