Skip to content

Release ffmpeg-2404 to candidate #27

Release ffmpeg-2404 to candidate

Release ffmpeg-2404 to candidate #27

name: Release ffmpeg-2404 to candidate
on:
workflow_run:
workflows: ["Release ffmpeg-2404-sdk to candidate"]
types: [completed]
branches: ["2404"]
paths:
- "ffmpeg-2404/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
issues: write
jobs:
get-architectures:
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
name: πŸ–₯ Get snap architectures
runs-on: ubuntu-latest
outputs:
architectures: ${{ steps.get-architectures.outputs.architectures }}
architectures-list: ${{ steps.get-architectures.outputs.architectures-list }}
steps:
- name: πŸ–₯ Get snap architectures
id: get-architectures
uses: snapcrafters/ci/get-architectures@main
with:
snapcraft-project-root: "ffmpeg-2404"
release-content:
name: 🚒 Release to latest/candidate
needs: get-architectures
runs-on: ubuntu-latest
environment: "2404 Branch"
strategy:
fail-fast: false
matrix:
architecture: ${{ fromJSON(needs.get-architectures.outputs.architectures-list) }}
steps:
- name: 🚒 Release to latest/candidate
id: build-amd64
uses: snapcrafters/ci/release-to-candidate@main
with:
architecture: ${{ matrix.architecture }}
launchpad-token: ${{ secrets.LP_BUILD_SECRET }}
multi-snap: true
snapcraft-project-root: "ffmpeg-2404"
snapcraft-channel: "latest/candidate"
store-token: ${{ secrets.SNAP_STORE_CANDIDATE }}
repo-token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }}
call-for-testing:
if: ${{ github.event_name != 'workflow_dispatch' }}
name: πŸ“£ Create call for testing
needs: [release-content, get-architectures]
environment: "2404 Branch"
runs-on: ubuntu-latest
outputs:
issue-number: ${{ steps.issue.outputs.issue-number }}
steps:
- name: πŸ“£ Create call for testing
id: issue
uses: snapcrafters/ci/call-for-testing@main
with:
snapcraft-project-root: "ffmpeg-2404"
architectures: ${{ needs.get-architectures.outputs.architectures }}
github-token: ${{ secrets.GITHUB_TOKEN }}
testing-instructions: |
1. Refresh the content snap
```bash
sudo snap refresh --channel=latest/candidate ffmpeg-2404
```
1. Install tagger (or any other snap that consumes this snap)
```bash
sudo snap install tagger --channel=latest/candidate
```
1. Connect the snap if not connected
```bash
sudo snap connect tagger:ffmpeg-2404 ffmpeg-2404
```
3. Run that snap, and see if there is any error