File tree Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Expand file tree Collapse file tree 2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build CI
2
+
3
+ on : [pull_request, push]
4
+
5
+ jobs :
6
+ test :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Dump GitHub context
10
+ env :
11
+ GITHUB_CONTEXT : ${{ toJson(github) }}
12
+ run : echo "$GITHUB_CONTEXT"
13
+ - name : Set up Python 3.7
14
+ uses : actions/setup-python@v1
15
+ with :
16
+ python-version : 3.7
17
+ - name : Versions
18
+ run : |
19
+ python3 --version
20
+ - uses : actions/checkout@v1
21
+ with :
22
+ submodules : true
23
+ - name : Install deps
24
+ run : |
25
+ pip install -r requirements-dev.txt
26
+ - name : Library version
27
+ run : |
28
+ git describe --dirty --always --tags
29
+ - name : Build assets
30
+ run : |
31
+ python3 build.py
Original file line number Diff line number Diff line change
1
+ name : Release Actions
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ upload-release-assets :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Dump GitHub context
12
+ env :
13
+ GITHUB_CONTEXT : ${{ toJson(github) }}
14
+ run : echo "$GITHUB_CONTEXT"
15
+ - name : Set up Python 3.7
16
+ uses : actions/setup-python@v1
17
+ with :
18
+ python-version : 3.7
19
+ - name : Versions
20
+ run : |
21
+ python3 --version
22
+ - uses : actions/checkout@v1
23
+ with :
24
+ submodules : true
25
+ - name : Install deps
26
+ run : |
27
+ pip install -r requirements.txt
28
+ - name : Build assets
29
+ run : |
30
+ python3 build.py
31
+ - name : Upload Release Assets
32
+ # the 'official' actions version does not yet support dynamically
33
+ # supplying asset names to upload. @csexton's version chosen based on
34
+ # discussion in the issue below, as its the simplest to implement and
35
+ # allows for selecting files with a pattern.
36
+ # https://github.com/actions/upload-release-asset/issues/4
37
+
38
+ uses : csexton/release-asset-action@master
39
+ with :
40
+ pattern : " _build/release/*"
41
+ github-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments