Skip to content

Commit eb96f94

Browse files
authored
Merge pull request #12 from tekktrik/dev/switch-asset-uploader
Upgrade to actions/checkout@v3
2 parents a2776de + 7c7947b commit eb96f94

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ to attach bundles to the releases. It takes the following arguments:
4545

4646
* ``github-token``: A valid GitHub token with authorization scope to upload the file
4747
to the release
48+
* ``upload-url`` The upload URL where the release assets can be uploaded; should be
49+
that of the release
4850

4951
It can be invoked using:
5052

@@ -54,6 +56,7 @@ It can be invoked using:
5456
uses: adafruit/workflows-circuitpython-libs/release-gh@main
5557
with:
5658
github-token: ${{ secrets.GITHUB_TOKEN }}
59+
upload-url: ${{ github.event.release.upload_url }}
5760
5861
PyPI Release CI
5962
---------------

build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ runs:
2525
run: |
2626
python3 --version
2727
- name: Checkout Current Repo
28-
uses: actions/checkout@v1
28+
uses: actions/checkout@v3
2929
with:
3030
submodules: true
3131
- name: Checkout tools repo
32-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
3333
with:
3434
repository: adafruit/actions-ci-circuitpython-libs
3535
path: actions-ci

release-gh/action.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ inputs:
88
github-token:
99
description: 'A GitHub token (required to upload to the release)'
1010
required: true
11+
upload-url:
12+
description: 'The release upload URL for the asset'
13+
required: true
1114
runs:
1215
using: "composite"
1316
steps:
@@ -29,11 +32,11 @@ runs:
2932
run: |
3033
python3 --version
3134
- name: Checkout Current Repo
32-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3336
with:
3437
submodules: true
3538
- name: Checkout tools repo
36-
uses: actions/checkout@v2
39+
uses: actions/checkout@v3
3740
with:
3841
repository: adafruit/actions-ci-circuitpython-libs
3942
path: actions-ci
@@ -45,13 +48,8 @@ runs:
4548
shell: bash
4649
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
4750
- name: Upload Release Assets
48-
# the 'official' actions version does not yet support dynamically
49-
# supplying asset names to upload. @csexton's version chosen based on
50-
# discussion in the issue below, as its the simplest to implement and
51-
# allows for selecting files with a pattern.
52-
# https://github.com/actions/upload-release-asset/issues/4
53-
#uses: actiont actionss/[email protected]
54-
uses: csexton/release-asset-action@master
51+
uses: shogo82148/actions-upload-release-asset@v1
5552
with:
56-
pattern: "bundles/*"
57-
github-token: ${{ inputs.github-token }}
53+
asset_path: "bundles/*"
54+
github_token: ${{ inputs.github-token }}
55+
upload_url: ${{ inputs.upload-url }}

release-pypi/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ inputs:
1414
runs:
1515
using: "composite"
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
- name: Check For pyproject.toml
1919
id: need-pypi
2020
shell: bash

0 commit comments

Comments
 (0)