diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 9c18f6ad4..5b7fd481b 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -72,3 +72,24 @@ jobs: - name: Build release 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 + + - name: Upload releases + if: ${{ github.event_name == 'pull_request' }} + uses: actions/upload-artifact@v4 + with: + name: fujinet-${{ matrix.target-platform }}.zip + path: ./firmware/*.zip + compression-level: 0 + + link: + if: ${{ github.event_name == 'pull_request' }} + needs: tagged-release + runs-on: ubuntu-latest + + permissions: + contents: write # for commenting on your commit + pull-requests: write # for commenting on your pr + steps: + - uses: beni69/artifact-link@v1 + with: + token: ${{ github.token }} \ No newline at end of file