-
-
Notifications
You must be signed in to change notification settings - Fork 69
42 lines (39 loc) · 2.12 KB
/
release.yml
File metadata and controls
42 lines (39 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Attach Artifacts to Release
on:
release:
types: [published]
jobs:
release-assets:
runs-on: ubuntu-latest
permissions:
contents: write
actions: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download Artifacts from latest CI run
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh run download --name "esp32-firmware" --repo ${{ github.repository }} && \
gh run download --name "esp32s3-firmware" --repo ${{ github.repository }} && \
gh run download --name "esp32c3-firmware" --repo ${{ github.repository }} && \
gh run download --name "esp32c6-firmware" --repo ${{ github.repository }} && \
gh run download --name "esp32-firmware-factory" --repo ${{ github.repository }} && \
gh run download --name "esp32s3-firmware-factory" --repo ${{ github.repository }} && \
gh run download --name "esp32c3-firmware-factory" --repo ${{ github.repository }} && \
gh run download --name "esp32c6-firmware-factory" --repo ${{ github.repository }} && \
gh run download --name "littlefs-binary" --repo ${{ github.repository }}
- name: Upload to Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.event.release.tag_name }} ./esp32.firmware.bin && \
gh release upload ${{ github.event.release.tag_name }} ./esp32s3.firmware.bin && \
gh release upload ${{ github.event.release.tag_name }} ./esp32c3.firmware.bin && \
gh release upload ${{ github.event.release.tag_name }} ./esp32c6.firmware.bin && \
gh release upload ${{ github.event.release.tag_name }} ./esp32.firmware.factory.bin && \
gh release upload ${{ github.event.release.tag_name }} ./esp32s3.firmware.factory.bin && \
gh release upload ${{ github.event.release.tag_name }} ./esp32c3.firmware.factory.bin && \
gh release upload ${{ github.event.release.tag_name }} ./esp32c6.firmware.factory.bin && \
gh release upload ${{ github.event.release.tag_name }} ./littlefs.bin