Skip to content

Commit 0ceb35e

Browse files
committed
ci: gh upload
1 parent 3455fb8 commit 0ceb35e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
create-release:
1111
runs-on: ubuntu-22.04
1212
outputs:
13-
release_upload_url: ${{ steps.create_release.outputs.upload_url }}
13+
upload_url: ${{ steps.create_release.outputs.upload_url }}
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3
@@ -22,7 +22,7 @@ jobs:
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424

25-
build-and-release:
25+
build-and-upload:
2626
needs: create-release
2727
strategy:
2828
matrix:
@@ -54,27 +54,30 @@ jobs:
5454
cmake -Daction=merge_binaries -P Bootloader.cmake
5555
5656
- name: Upload artifact
57-
uses: actions/upload-artifact@v2
57+
uses: actions/upload-artifact@v4
5858
with:
5959
name: graphical_bootloader_${{ matrix.board.name }}
6060
path: build/combined.bin
6161

6262
upload-release-assets:
63-
needs: build-and-release
63+
needs: build-and-upload
6464
runs-on: ubuntu-22.04
6565
steps:
6666
- name: Checkout
6767
uses: actions/checkout@v3
6868

6969
- name: Download Artifacts
70-
uses: actions/download-artifact@v2
70+
uses: actions/download-artifact@v4
7171
with:
7272
path: ./artifacts
7373

7474
- name: Upload Release Assets
7575
run: |
76+
echo "Listing files"
77+
find artifacts
78+
echo "Enf of list"
7679
for file in ./artifacts/*; do
77-
gh release upload ${{ github.ref }} "$file" --clobber
80+
gh release upload ${{ needs.create-release.outputs.upload_url }} "$file" --clobber
7881
done
7982
env:
8083
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)