Skip to content

Commit 6642227

Browse files
authored
Merge pull request #421 from tekktrik/dev/update-ci
Update CI
2 parents c62d64b + da6854b commit 6642227

File tree

3 files changed

+16
-31
lines changed

3 files changed

+16
-31
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,25 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Dump GitHub context
14-
uses: actions/github-script@v6
15-
with:
16-
script: console.log(JSON.stringify(context, null, 2))
1713
- name: Translate Repo Name For Build Tools filename_prefix
1814
id: repo-name
1915
run: |
20-
echo ::set-output name=repo-name::$(
16+
echo "repo-name=$(
2117
echo ${{ github.repository }} |
2218
awk -F '\/' '{ print tolower($2) }' |
2319
tr '_' '-'
24-
)
20+
)" >> $GITHUB_OUTPUT
2521
- name: Set up Python 3.10
26-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v4
2723
with:
2824
python-version: "3.10"
2925
- name: Versions
3026
run: |
3127
python3 --version
32-
- uses: actions/checkout@v1
28+
- uses: actions/checkout@v3
3329
with:
3430
submodules: true
31+
fetch-depth: 0
3532
- name: Install deps
3633
run: |
3734
sudo apt-get install gettext

.github/workflows/images.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,12 @@ jobs:
1818
if: github.repository_owner == 'adafruit'
1919
runs-on: ubuntu-20.04
2020
steps:
21-
- name: Dump GitHub context
22-
uses: actions/github-script@v6
23-
with:
24-
script: console.log(JSON.stringify(context, null, 2))
25-
- uses: actions/checkout@v2.2.0
21+
- uses: actions/checkout@v3
2622

2723
- name: checkout submodules
2824
run: git submodule update --init --jobs 16 --depth 1
2925
- name: Set up Python 3.10
30-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v4
3127
with:
3228
python-version: "3.10"
3329

.github/workflows/release.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)