Upload ffmpeg to Release #3
This file contains hidden or 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: Upload ffmpeg to Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # 只在打 tag 时触发 | |
| workflow_dispatch: | |
| jobs: | |
| upload-ffmpeg: | |
| runs-on: ['self-hosted','zp-nc04'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: 编译ffmpeg | |
| run: | | |
| ./install_ffmpeg.sh /usr | |
| - name: 创建deb包 | |
| run: | | |
| ./create_deb_pkg.sh ffmpge-n7.1-with-gltrasition 1.0.0 1 amd64 | |
| - name: Get the tag name | |
| id: vars | |
| run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
| - name: Create GitHub Release (if not exists) | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ env.TAG_NAME }} | |
| name: Release ${{ env.TAG_NAME }} | |
| draft: false | |
| prerelease: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload ffmpeg binary to Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: ffmpegMaker/ffmpge-n7.1-with-gltrasition_1.0.0-1_amd64.deb | |
| repository: linjonh/ffmpegMaker | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.FFMPEGMAKER_TARGET_REPO_TOKEN }} |