Release Binaries #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Binaries | |
on: | |
workflow_dispatch: | |
inputs: | |
go2rtc_version: | |
description: Specify go2rtc version | |
required: true | |
default: v1.6.2 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download Binaries | |
run: bash ./build/build.sh ${{ github.event.inputs.go2rtc_version }} | |
- name: Compress Binaries | |
run: | | |
set -e | |
set -o pipefail | |
cat bin/go2rtc_linux_amd64 | gzip --best >bin/go2rtc_linux_amd64.gz | |
cat bin/go2rtc_linux_arm64 | gzip --best >bin/go2rtc_linux_arm64.gz | |
cat bin/go2rtc_linux_arm | gzip --best >bin/go2rtc_linux_arm.gz | |
cat bin/go2rtc_linux_i386 | gzip --best >bin/go2rtc_linux_i386.gz | |
cat bin/go2rtc_linux_mipsel | gzip --best >bin/go2rtc_linux_mipsel.gz | |
cat bin/go2rtc_mac_amd64 | gzip --best >bin/go2rtc_mac_amd64.gz | |
cat bin/go2rtc_mac_arm64 | gzip --best >bin/go2rtc_mac_arm64.gz | |
cat bin/go2rtc_win_amd64.exe | gzip --best >bin/go2rtc_win_amd64.exe.gz | |
cat bin/go2rtc_win_arm64.exe | gzip --best >bin/go2rtc_win_arm64.exe.gz | |
cat bin/go2rtc_win_i386.exe | gzip --best >bin/go2rtc_win_i386.exe.gz | |
ls -l bin | |
shell: bash | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1.1.4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: bin-${{ github.event.inputs.go2rtc_version }} | |
release_name: go2rtc ${{ github.event.inputs.go2rtc_version }} binaries | |
body: For changelog look [here](https://github.com/AlexxIT/go2rtc/releases/tag/${{ github.event.inputs.go2rtc_version }}). | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_amd64.gz | |
asset_name: go2rtc_linux_amd64.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_amd64.LICENSE | |
asset_name: go2rtc_linux_amd64.LICENSE | |
asset_content_type: text/plain | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_arm64.gz | |
asset_name: go2rtc_linux_arm64.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_arm64.LICENSE | |
asset_name: go2rtc_linux_arm64.LICENSE | |
asset_content_type: text/plain | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_arm.gz | |
asset_name: go2rtc_linux_arm.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_arm.LICENSE | |
asset_name: go2rtc_linux_arm.LICENSE | |
asset_content_type: text/plain | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_i386.gz | |
asset_name: go2rtc_linux_i386.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_i386.LICENSE | |
asset_name: go2rtc_linux_i386.LICENSE | |
asset_content_type: text/plain | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_mipsel.gz | |
asset_name: go2rtc_linux_mipsel.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_linux_mipsel.LICENSE | |
asset_name: go2rtc_linux_mipsel.LICENSE | |
asset_content_type: text/plain | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_mac_amd64.gz | |
asset_name: go2rtc_mac_amd64.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_mac_amd64.LICENSE | |
asset_name: go2rtc_mac_amd64.LICENSE | |
asset_content_type: text/plain | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_mac_arm64.gz | |
asset_name: go2rtc_mac_arm64.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_mac_arm64.LICENSE | |
asset_name: go2rtc_mac_arm64.LICENSE | |
asset_content_type: text/plain | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_win_amd64.exe.gz | |
asset_name: go2rtc_win_amd64.exe.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_win_amd64.LICENSE | |
asset_name: go2rtc_win_amd64.LICENSE | |
asset_content_type: text/plain | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_win_arm64.exe.gz | |
asset_name: go2rtc_win_arm64.exe.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_win_arm64.LICENSE | |
asset_name: go2rtc_win_arm64.LICENSE | |
asset_content_type: text/plain | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_win_i386.exe.gz | |
asset_name: go2rtc_win_i386.exe.gz | |
asset_content_type: application/octet-stream | |
- uses: actions/upload-release-asset@v1.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/go2rtc_win_i386.LICENSE | |
asset_name: go2rtc_win_i386.LICENSE | |
asset_content_type: text/plain |