Skip to content

Commit

Permalink
use official github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Jan 15, 2020
1 parent d302fa0 commit 188e119
Showing 1 changed file with 73 additions and 12 deletions.
85 changes: 73 additions & 12 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,78 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Download Binaries
run: sh ./build/index.sh
- uses: meeDamian/github-release@1.0
with:
token: ${{secrets.GITHUB_TOKEN}}
files: >
darwin-x64-ffmpeg:bin/darwin/x64/ffmpeg
linux-arm-ffmpeg:bin/linux/arm/ffmpeg
linux-arm64-ffmpeg:bin/linux/arm64/ffmpeg
linux-ia32-ffmpeg:bin/linux/ia32/ffmpeg
linux-x64-ffmpeg:bin/linux/x64/ffmpeg
win32-ia32-ffmpeg.exe:bin/win32/ia32/ffmpeg.exe
win32-x64-ffmpeg.exe:bin/win32/x64/ffmpeg.exe
gzip: false

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}

- uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/darwin/x64/ffmpeg
asset_name: darwin-x64-ffmpeg
asset_content_type: application/octet-stream

- uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux/arm/ffmpeg
asset_name: linux-arm-ffmpeg
asset_content_type: application/octet-stream

- uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux/arm64/ffmpeg
asset_name: linux-arm64-ffmpeg
asset_content_type: application/octet-stream

- uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux/ia32/ffmpeg
asset_name: linux-ia32-ffmpeg
asset_content_type: application/octet-stream

- uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/linux/x64/ffmpeg
asset_name: linux-x64-ffmpeg
asset_content_type: application/octet-stream

- uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/win32/ia32/ffmpeg.exe
asset_name: win32-ia32-ffmpeg.exe
asset_content_type: application/octet-stream

- uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: bin/win32/x64/ffmpeg.exe
asset_name: win32-x64-ffmpeg.exe
asset_content_type: application/octet-stream

0 comments on commit 188e119

Please sign in to comment.