Skip to content

Commit 9906b66

Browse files
committed
add pr artifact message action
1 parent 8f06257 commit 9906b66

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/autobuild.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,24 @@ jobs:
7272

7373
- name: Build release
7474
run: cd /home/runner/work/fujinet-firmware/fujinet-firmware && /usr/bin/bash ./build.sh -z -l /home/runner/work/fujinet-firmware/fujinet-firmware/.github/workflows/platformio.release-${{ matrix.target-platform }}.ini -i /home/runner/work/fujinet-firmware/fujinet-firmware/platformio-generated.ini
75+
76+
- name: Upload releases
77+
if: ${{ github.event_name == 'pull_request' }}
78+
uses: actions/upload-artifact@v4
79+
with:
80+
name: fujinet-${{ matrix.target-platform }}.zip
81+
path: ./firmware/*.zip
82+
compression-level: 0
83+
84+
link:
85+
if: ${{ github.event_name == 'pull_request' }}
86+
needs: tagged-release
87+
runs-on: ubuntu-latest
88+
89+
permissions:
90+
contents: write # for commenting on your commit
91+
pull-requests: write # for commenting on your pr
92+
steps:
93+
- uses: beni69/artifact-link@v1
94+
with:
95+
token: ${{ github.token }}

0 commit comments

Comments
 (0)