Skip to content

Commit

Permalink
check gortsplib before publishing a release
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Oct 25, 2022
1 parent ff26b88 commit edaad84
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,25 @@ on:
- 'v*'

jobs:
# make sure that gortsplib is updated
check_gortsplib:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v2
with:
go-version: "1.18"

- run: |
sed -i '/gortsplib/d' go.mod
go mod download
go mod tidy
git diff --exit-code
github:
needs: check_gortsplib
runs-on: ubuntu-20.04

steps:
Expand Down Expand Up @@ -42,6 +60,7 @@ jobs:
}
dockerhub:
needs: check_gortsplib
runs-on: ubuntu-20.04

steps:
Expand All @@ -53,6 +72,7 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

apidocs:
needs: check_gortsplib
runs-on: ubuntu-20.04

steps:
Expand Down

0 comments on commit edaad84

Please sign in to comment.