@@ -12,45 +12,37 @@ jobs:
1212 upload-release-assets :
1313 runs-on : ubuntu-latest
1414 steps :
15- - name : Dump GitHub context
16- uses : actions/github-script@v6
17- with :
18- script : console.log(JSON.stringify(context, null, 2))
1915 - name : Translate Repo Name For Build Tools filename_prefix
2016 id : repo-name
2117 run : |
22- echo ::set-output name= repo-name:: $(
18+ echo " repo-name= $(
2319 echo ${{ github.repository }} |
2420 awk -F '\/' '{ print tolower($2) }' |
2521 tr '_' '-'
26- )
22+ )" >> $GITHUB_OUTPUT
2723 - name : Set up Python 3.10
28- uses : actions/setup-python@v2
24+ uses : actions/setup-python@v4
2925 with :
3026 python-version : " 3.10"
3127 - name : Versions
3228 run : |
3329 python3 --version
34- - uses : actions/checkout@v1
30+ - uses : actions/checkout@v3
3531 with :
3632 submodules : true
33+ fetch-depth : 0
3734 - name : Install deps
3835 run : |
3936 sudo apt-get install gettext
4037 pip install -r requirements.txt
4138 - name : Build assets
4239 run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location libraries --library_depth 2 --package_folder_prefix "adafruit_, asyncio"
4340 - 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
5142 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 }}
5446 - name : Upload Assets To AWS S3
5547 env :
5648 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
0 commit comments