File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : packing
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ pull_request_target :
7
+ types : [labeled]
8
+
9
+ jobs :
10
+ pack_pip :
11
+ # We want to run on external PRs, but not on our own internal
12
+ # PRs as they'll be run by the push to the branch.
13
+ #
14
+ # The main trick is described here:
15
+ # https://github.com/Dart-Code/Dart-Code/pull/2375
16
+ if : (github.event_name == 'push') ||
17
+ (github.event_name == 'pull_request' &&
18
+ github.event.pull_request.head.repo.full_name != github.repository)
19
+ runs-on : ubuntu-20.04
20
+
21
+ strategy :
22
+ fail-fast : false
23
+
24
+ steps :
25
+ - name : Clone the connector repo
26
+ uses : actions/checkout@v3
27
+ # Checkout all tags for correct version computation
28
+ with :
29
+ fetch-depth : 0
30
+
31
+ - name : Setup Python and basic packing tools
32
+ uses : actions/setup-python@v2
33
+ with :
34
+ python-version : ' 3.10'
35
+
36
+ - name : Install tools for packing
37
+ run : pip install wheel
38
+
39
+ - name : Install tools for package verification
40
+ run : pip install twine
41
+
42
+ - name : Pack source code
43
+ run : python setup.py sdist
44
+
45
+ - name : Pack wheel file
46
+ run : python setup.py bdist_wheel
47
+
48
+ - name : Verify the package
49
+ run : twine check dist/*
50
+
51
+ - name : Archive pip artifacts
52
+ uses : actions/upload-artifact@v3
53
+ with :
54
+ name : pip_dist
55
+ path : dist
56
+ retention-days : 1
You can’t perform that action at this time.
0 commit comments