@@ -19,19 +19,19 @@ jobs:
19
19
- name : Translate Repo Name For Build Tools filename_prefix
20
20
id : repo-name
21
21
run : |
22
- echo ::set-output name= repo-name::$(
22
+ echo " repo-name::$(
23
23
echo ${{ github.repository }} |
24
24
awk -F '\/' '{ print tolower($2) }' |
25
25
tr '_' '-'
26
- )
26
+ )" >> $GITHUB_OUTPUT
27
27
- name : Set up Python 3.10
28
- uses : actions/setup-python@v2
28
+ uses : actions/setup-python@v4
29
29
with :
30
30
python-version : " 3.10"
31
31
- name : Versions
32
32
run : |
33
33
python3 --version
34
- - uses : actions/checkout@v1
34
+ - uses : actions/checkout@v3
35
35
with :
36
36
submodules : true
37
37
- name : Install deps
@@ -41,16 +41,11 @@ jobs:
41
41
- name : Build assets
42
42
run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location libraries --library_depth 2 --package_folder_prefix "adafruit_, asyncio"
43
43
- name : Upload Release Assets
44
- # the 'official' actions version does not yet support dynamically
45
- # supplying asset names to upload. @csexton's version chosen based on
46
- # discussion in the issue below, as its the simplest to implement and
47
- # allows for selecting files with a pattern.
48
- # https://github.com/actions/upload-release-asset/issues/4
49
-
50
- uses : csexton/release-asset-action@master
44
+ uses : shogo82148/actions-upload-release-asset@v1
51
45
with :
52
- pattern : " bundles/*"
53
- github-token : ${{ secrets.GITHUB_TOKEN }}
46
+ asset_path : " bundles/*"
47
+ github_token : ${{ secrets.GITHUB_TOKEN }}
48
+ upload_url : ${{ github.event.release.upload_url }}
54
49
- name : Upload Assets To AWS S3
55
50
env :
56
51
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
0 commit comments