diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13105f2..0fad118 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -152,6 +152,24 @@ jobs: # Let subsequent steps know where to find the compressed package echo "TAR_LIVEMAN_NAME=${TAR_NAME}" >> $GITHUB_ENV + - name: Rename binary + shell: bash + run: | + cp ${{ env.BUILD_PATH }}/whepfrom${{ env.EXE_SUFFIX }} ${{ env.PKG_WHEPFROM_NAME }} + cp ${{ env.BUILD_PATH }}/whipinto${{ env.EXE_SUFFIX }} ${{ env.PKG_WHIPINTO_NAME }} + cp ${{ env.BUILD_PATH }}/net4mqtt${{ env.EXE_SUFFIX }} ${{ env.PKG_NET4MQTT_NAME }} + + - name: Artifact Upload Binary + uses: actions/upload-artifact@v4 + with: + name: ${{ env.VERSION }}_${{ matrix.job.target }}_bin + path: | + ${{ env.TAR_LIVE777_NAME }} + ${{ env.TAR_LIVEMAN_NAME }} + ${{ env.PKG_WHEPFROM_NAME }} + ${{ env.PKG_WHIPINTO_NAME }} + ${{ env.PKG_NET4MQTT_NAME }} + - name: Install nFPM if: ${{ matrix.job.nfpm }} run: | @@ -184,36 +202,46 @@ jobs: nfpm pkg --packager deb --config whipinto.yaml nfpm pkg --packager deb --config whepfrom.yaml - - name: Rename binary - shell: bash - run: | - mv ${{ env.BUILD_PATH }}/whepfrom${{ env.EXE_SUFFIX }} ${{ env.PKG_WHEPFROM_NAME }} - mv ${{ env.BUILD_PATH }}/whipinto${{ env.EXE_SUFFIX }} ${{ env.PKG_WHIPINTO_NAME }} - mv ${{ env.BUILD_PATH }}/net4mqtt${{ env.EXE_SUFFIX }} ${{ env.PKG_NET4MQTT_NAME }} + nfpm pkg --packager rpm --config live777.yaml + nfpm pkg --packager rpm --config liveman.yaml + nfpm pkg --packager rpm --config net4mqtt.yaml + nfpm pkg --packager rpm --config whipinto.yaml + nfpm pkg --packager rpm --config whepfrom.yaml - - name: Artifact Upload Binary + nfpm pkg --packager archlinux --config live777.yaml + nfpm pkg --packager archlinux --config liveman.yaml + nfpm pkg --packager archlinux --config net4mqtt.yaml + nfpm pkg --packager archlinux --config whipinto.yaml + nfpm pkg --packager archlinux --config whepfrom.yaml + + - name: Artifact Upload deb package uses: actions/upload-artifact@v4 + if: ${{ matrix.job.nfpm }} with: - name: ${{ env.VERSION }}_${{ matrix.job.target }}_binary + name: ${{ env.VERSION }}_${{ matrix.job.target }}_deb path: | - ${{ env.TAR_LIVE777_NAME }} - ${{ env.TAR_LIVEMAN_NAME }} - ${{ env.PKG_WHEPFROM_NAME }} - ${{ env.PKG_WHIPINTO_NAME }} - ${{ env.PKG_NET4MQTT_NAME }} + *.deb - - name: Artifact Upload debian + - name: Artifact Upload rpm package uses: actions/upload-artifact@v4 if: ${{ matrix.job.nfpm }} with: - name: ${{ env.VERSION }}_${{ matrix.job.target }}_debian + name: ${{ env.VERSION }}_${{ matrix.job.target }}_rpm path: | - *.deb + *.rpm + + - name: Artifact Upload archlinux package + uses: actions/upload-artifact@v4 + if: ${{ matrix.job.nfpm }} + with: + name: ${{ env.VERSION }}_${{ matrix.job.target }}_archlinux + path: | + *.pkg.tar.zst - name: Upload release archive shell: bash if: github.ref_type == 'tag' - run: gh release upload ${{ env.VERSION }} ${{ env.TAR_LIVE777_NAME }} ${{ env.TAR_LIVEMAN_NAME }} ${{ env.PKG_WHEPFROM_NAME }} ${{ env.PKG_WHIPINTO_NAME }} ${{ env.PKG_NET4MQTT_NAME }} *.deb + run: gh release upload ${{ env.VERSION }} ${{ env.TAR_LIVE777_NAME }} ${{ env.TAR_LIVEMAN_NAME }} ${{ env.PKG_WHEPFROM_NAME }} ${{ env.PKG_WHIPINTO_NAME }} ${{ env.PKG_NET4MQTT_NAME }} *.deb *.rpm *.pkg.tar.zst env: GH_TOKEN: ${{ github.token }}