Skip to content

Commit 2edfa62

Browse files
committed
fetch all tags in release CI
1 parent e6be8c8 commit 2edfa62

File tree

1 file changed

+46
-40
lines changed

1 file changed

+46
-40
lines changed

.github/workflows/release.yml

Lines changed: 46 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,51 +14,57 @@ jobs:
1414
if: github.event_name != 'workflow_dispatch' && github.repository == '2bndy5/CircuitPython_Homie'
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Translate Repo Name For Build Tools filename_prefix
18-
id: repo-name
19-
run: |
20-
echo ::set-output name=repo-name::$(
21-
echo ${{ github.repository }} |
22-
awk -F '\/' '{ print tolower($2) }' |
23-
tr '_' '-'
24-
)
25-
- name: Set up Python 3.x
26-
uses: actions/setup-python@v2
27-
with:
28-
python-version: "3.x"
29-
- name: Versions
30-
run: |
31-
python3 --version
32-
- name: Checkout Current Repo
33-
uses: actions/checkout@v3
34-
with:
35-
submodules: true
36-
- name: Checkout tools repo
37-
uses: actions/checkout@v3
38-
with:
39-
repository: adafruit/actions-ci-circuitpython-libs
40-
path: actions-ci
41-
- name: Install deps
42-
run: |
43-
source actions-ci/install.sh
44-
- name: Build assets
45-
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --package_folder_prefix "" --library_location .
46-
- name: Upload Release Assets
47-
# the 'official' actions version does not yet support dynamically
48-
# supplying asset names to upload. @csexton's version chosen based on
49-
# discussion in the issue below, as its the simplest to implement and
50-
# allows for selecting files with a pattern.
51-
# https://github.com/actions/upload-release-asset/issues/4
52-
#uses: actions/[email protected]
53-
uses: csexton/release-asset-action@master
54-
with:
55-
pattern: "bundles/*"
56-
github-token: ${{ secrets.GITHUB_TOKEN }}
17+
- name: Translate Repo Name For Build Tools filename_prefix
18+
id: repo-name
19+
run: |
20+
echo ::set-output name=repo-name::$(
21+
echo ${{ github.repository }} |
22+
awk -F '\/' '{ print tolower($2) }' |
23+
tr '_' '-'
24+
)
25+
26+
- name: Set up Python 3.x
27+
uses: actions/setup-python@v2
28+
with:
29+
python-version: "3.x"
30+
31+
- name: Checkout Current Repo
32+
uses: actions/checkout@v3
33+
with:
34+
submodules: true
35+
fetch-depth: 0
36+
37+
- name: Checkout tools repo
38+
uses: actions/checkout@v3
39+
with:
40+
repository: adafruit/actions-ci-circuitpython-libs
41+
path: actions-ci
42+
43+
- name: Install deps
44+
run: |
45+
source actions-ci/install.sh
46+
47+
- name: Build assets
48+
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --package_folder_prefix "" --library_location .
49+
50+
- name: Upload Release Assets
51+
# the 'official' actions version does not yet support dynamically
52+
# supplying asset names to upload. @csexton's version chosen based on
53+
# discussion in the issue below, as its the simplest to implement and
54+
# allows for selecting files with a pattern.
55+
# https://github.com/actions/upload-release-asset/issues/4
56+
#uses: actions/[email protected]
57+
uses: csexton/release-asset-action@master
58+
with:
59+
pattern: "bundles/*"
60+
github-token: ${{ secrets.GITHUB_TOKEN }}
5761

5862
upload-pypi:
5963
runs-on: ubuntu-latest
6064
steps:
6165
- uses: actions/checkout@v3
66+
with:
67+
fetch-depth: 0
6268

6369
- uses: actions/setup-python@v2
6470
with:

0 commit comments

Comments
 (0)