File tree Expand file tree Collapse file tree 4 files changed +89
-25
lines changed Expand file tree Collapse file tree 4 files changed +89
-25
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 : Translate Repo Name For Build Tools filename_prefix
14
+ id : repo-name
15
+ run : |
16
+ echo ::set-output name=repo-name::$(
17
+ echo ${{ github.repository }} |
18
+ awk -F '\/' '{ print tolower($2) }' |
19
+ tr '_' '-'
20
+ )
21
+ - name : Set up Python 3.6
22
+ uses : actions/setup-python@v1
23
+ with :
24
+ python-version : 3.6
25
+ - name : Versions
26
+ run : |
27
+ python3 --version
28
+ - uses : actions/checkout@v1
29
+ with :
30
+ submodules : true
31
+ - name : Install deps
32
+ run : |
33
+ pip install -r requirements.txt
34
+ - name : Library version
35
+ run : git describe --dirty --always --tags
36
+ - name : Build assets
37
+ run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location libraries --library_depth 2
38
+ - name : Build docs
39
+ working-directory : docs
40
+ run : sphinx-build -E -W -b html . _build/html
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 : Translate Repo Name For Build Tools filename_prefix
16
+ id : repo-name
17
+ run : |
18
+ echo ::set-output name=repo-name::$(
19
+ echo ${{ github.repository }} |
20
+ awk -F '\/' '{ print tolower($2) }' |
21
+ tr '_' '-'
22
+ )
23
+ - name : Set up Python 3.6
24
+ uses : actions/setup-python@v1
25
+ with :
26
+ python-version : 3.6
27
+ - name : Versions
28
+ run : |
29
+ python3 --version
30
+ - uses : actions/checkout@v1
31
+ with :
32
+ submodules : true
33
+ - name : Install deps
34
+ run : |
35
+ pip install -r requirements.txt
36
+ - name : Build assets
37
+ run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location libraries --library_depth 2
38
+ - name : Upload Release Assets
39
+ # the 'official' actions version does not yet support dynamically
40
+ # supplying asset names to upload. @csexton's version chosen based on
41
+ # discussion in the issue below, as its the simplest to implement and
42
+ # allows for selecting files with a pattern.
43
+ # https://github.com/actions/upload-release-asset/issues/4
44
+ # uses: actions/upload-release-asset@v1.0.1
45
+ uses : csexton/release-asset-action@master
46
+ with :
47
+ pattern : " bundles/*"
48
+ github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
- build *
1
+ build / *
2
2
* zip
3
3
.env
4
4
bundles
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments