Skip to content

Commit 4c750fb

Browse files
committed
Update CI
1 parent 667b6eb commit 4c750fb

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ jobs:
1717
- name: Translate Repo Name For Build Tools filename_prefix
1818
id: repo-name
1919
run: |
20-
echo ::set-output name=repo-name::$(
20+
echo "repo-name=$(
2121
echo ${{ github.repository }} |
2222
awk -F '\/' '{ print tolower($2) }' |
2323
tr '_' '-'
24-
)
24+
)" >> $GITHUB_OUTPUT
2525
- name: Set up Python 3.10
26-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v4
2727
with:
2828
python-version: "3.10"
2929
- name: Versions
3030
run: |
3131
python3 --version
32-
- uses: actions/checkout@v1
32+
- uses: actions/checkout@v3
3333
with:
3434
submodules: true
3535
- name: Install deps

.github/workflows/images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
uses: actions/github-script@v6
2323
with:
2424
script: console.log(JSON.stringify(context, null, 2))
25-
- uses: actions/checkout@v2.2.0
25+
- uses: actions/checkout@v3
2626

2727
- name: checkout submodules
2828
run: git submodule update --init --jobs 16 --depth 1
2929
- name: Set up Python 3.10
30-
uses: actions/setup-python@v2
30+
uses: actions/setup-python@v4
3131
with:
3232
python-version: "3.10"
3333

.github/workflows/release.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ jobs:
1919
- name: Translate Repo Name For Build Tools filename_prefix
2020
id: repo-name
2121
run: |
22-
echo ::set-output name=repo-name::$(
22+
echo "repo-name::$(
2323
echo ${{ github.repository }} |
2424
awk -F '\/' '{ print tolower($2) }' |
2525
tr '_' '-'
26-
)
26+
)" >> $GITHUB_OUTPUT
2727
- name: Set up Python 3.10
28-
uses: actions/setup-python@v2
28+
uses: actions/setup-python@v4
2929
with:
3030
python-version: "3.10"
3131
- name: Versions
3232
run: |
3333
python3 --version
34-
- uses: actions/checkout@v1
34+
- uses: actions/checkout@v3
3535
with:
3636
submodules: true
3737
- name: Install deps
@@ -41,16 +41,11 @@ jobs:
4141
- name: Build assets
4242
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location libraries --library_depth 2 --package_folder_prefix "adafruit_, asyncio"
4343
- 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/[email protected]
50-
uses: csexton/release-asset-action@master
44+
uses: shogo82148/actions-upload-release-asset@v1
5145
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 }}
5449
- name: Upload Assets To AWS S3
5550
env:
5651
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

0 commit comments

Comments
 (0)