File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ to attach bundles to the releases. It takes the following arguments:
45
45
46
46
* ``github-token ``: A valid GitHub token with authorization scope to upload the file
47
47
to the release
48
+ * ``upload-url `` The upload URL where the release assets can be uploaded; should be
49
+ that of the release
48
50
49
51
It can be invoked using:
50
52
@@ -54,6 +56,7 @@ It can be invoked using:
54
56
uses : adafruit/workflows-circuitpython-libs/release-gh@main
55
57
with :
56
58
github-token : ${{ secrets.GITHUB_TOKEN }}
59
+ upload-url : ${{ github.event.release.upload_url }}
57
60
58
61
PyPI Release CI
59
62
---------------
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ runs:
25
25
run : |
26
26
python3 --version
27
27
- name : Checkout Current Repo
28
- uses : actions/checkout@v1
28
+ uses : actions/checkout@v3
29
29
with :
30
30
submodules : true
31
31
- name : Checkout tools repo
32
- uses : actions/checkout@v2
32
+ uses : actions/checkout@v3
33
33
with :
34
34
repository : adafruit/actions-ci-circuitpython-libs
35
35
path : actions-ci
Original file line number Diff line number Diff line change 8
8
github-token :
9
9
description : ' A GitHub token (required to upload to the release)'
10
10
required : true
11
+ upload-url :
12
+ description : ' The release upload URL for the asset'
13
+ required : true
11
14
runs :
12
15
using : " composite"
13
16
steps :
@@ -29,11 +32,11 @@ runs:
29
32
run : |
30
33
python3 --version
31
34
- name : Checkout Current Repo
32
- uses : actions/checkout@v2
35
+ uses : actions/checkout@v3
33
36
with :
34
37
submodules : true
35
38
- name : Checkout tools repo
36
- uses : actions/checkout@v2
39
+ uses : actions/checkout@v3
37
40
with :
38
41
repository : adafruit/actions-ci-circuitpython-libs
39
42
path : actions-ci
45
48
shell : bash
46
49
run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
47
50
- name : Upload Release Assets
48
- # the 'official' actions version does not yet support dynamically
49
- # supplying asset names to upload. @csexton's version chosen based on
50
- # discussion in the issue below, as its the simplest to implement and
51
- # allows for selecting files with a pattern.
52
- # https://github.com/actions/upload-release-asset/issues/4
53
- # uses: actiont actionss/[email protected]
54
- uses : csexton/release-asset-action@master
51
+ uses : shogo82148/actions-upload-release-asset@v1
55
52
with :
56
- pattern : " bundles/*"
57
- github-token : ${{ inputs.github-token }}
53
+ asset_path : " bundles/*"
54
+ github_token : ${{ inputs.github-token }}
55
+ upload_url : ${{ inputs.upload-url }}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ inputs:
14
14
runs :
15
15
using : " composite"
16
16
steps :
17
- - uses : actions/checkout@v2
17
+ - uses : actions/checkout@v3
18
18
- name : Check For pyproject.toml
19
19
id : need-pypi
20
20
shell : bash
You can’t perform that action at this time.
0 commit comments