@@ -12,45 +12,37 @@ jobs:
12
12
upload-release-assets :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - name : Dump GitHub context
16
- uses : actions/github-script@v6
17
- with :
18
- script : console.log(JSON.stringify(context, null, 2))
19
15
- name : Translate Repo Name For Build Tools filename_prefix
20
16
id : repo-name
21
17
run : |
22
- echo ::set-output name= repo-name:: $(
18
+ echo " repo-name= $(
23
19
echo ${{ github.repository }} |
24
20
awk -F '\/' '{ print tolower($2) }' |
25
21
tr '_' '-'
26
- )
22
+ )" >> $GITHUB_OUTPUT
27
23
- name : Set up Python 3.10
28
- uses : actions/setup-python@v2
24
+ uses : actions/setup-python@v4
29
25
with :
30
26
python-version : " 3.10"
31
27
- name : Versions
32
28
run : |
33
29
python3 --version
34
- - uses : actions/checkout@v1
30
+ - uses : actions/checkout@v3
35
31
with :
36
32
submodules : true
33
+ fetch-depth : 0
37
34
- name : Install deps
38
35
run : |
39
36
sudo apt-get install gettext
40
37
pip install -r requirements.txt
41
38
- name : Build assets
42
39
run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location libraries --library_depth 2 --package_folder_prefix "adafruit_, asyncio"
43
40
- 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
- # uses: actions/upload-release-asset@v1.0.1
50
- uses : csexton/release-asset-action@master
41
+ uses : shogo82148/actions-upload-release-asset@v1
51
42
with :
52
- pattern : " bundles/*"
53
- github-token : ${{ secrets.GITHUB_TOKEN }}
43
+ asset_path : " bundles/*"
44
+ github_token : ${{ secrets.GITHUB_TOKEN }}
45
+ upload_url : ${{ github.event.release.upload_url }}
54
46
- name : Upload Assets To AWS S3
55
47
env :
56
48
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
0 commit comments