mirror of
https://github.com/aler9/rtsp-simple-server
synced 2026-04-22 23:17:11 +08:00
check gortsplib before publishing a release
This commit is contained in:
@@ -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:
|
||||
@@ -42,6 +60,7 @@ jobs:
|
||||
}
|
||||
|
||||
dockerhub:
|
||||
needs: check_gortsplib
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
@@ -53,6 +72,7 @@ jobs:
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
apidocs:
|
||||
needs: check_gortsplib
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user