File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
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 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 :
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 }}
You can’t perform that action at this time.
0 commit comments