mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
parent
35c89cc436
commit
2ed9516a35
1 changed files with 18 additions and 22 deletions
40
.github/workflows/release.yml
vendored
40
.github/workflows/release.yml
vendored
|
@ -30,12 +30,11 @@ jobs:
|
||||||
echo "SRS_VERSION=$SRS_VERSION" >> $GITHUB_ENV
|
echo "SRS_VERSION=$SRS_VERSION" >> $GITHUB_ENV
|
||||||
SRS_MAJOR=$(echo $SRS_TAG| cut -c 2)
|
SRS_MAJOR=$(echo $SRS_TAG| cut -c 2)
|
||||||
echo "SRS_MAJOR=$SRS_MAJOR" >> $GITHUB_ENV
|
echo "SRS_MAJOR=$SRS_MAJOR" >> $GITHUB_ENV
|
||||||
# See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
# Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
|
||||||
- name: Set output
|
outputs:
|
||||||
run: |
|
SRS_TAG: ${{ env.SRS_TAG }}
|
||||||
echo "SRS_TAG=${{ env.SRS_TAG }}" >> $GITHUB_OUTPUT
|
SRS_VERSION: ${{ env.SRS_VERSION }}
|
||||||
echo "SRS_VERSION=${{ env.SRS_VERSION }}" >> $GITHUB_OUTPUT
|
SRS_MAJOR: ${{ env.SRS_MAJOR }}
|
||||||
echo "SRS_MAJOR=${{ env.SRS_MAJOR }}" >> $GITHUB_OUTPUT
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@ -83,10 +82,9 @@ jobs:
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ github.ref }}
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
# See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
# Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
|
||||||
- name: Set output
|
outputs:
|
||||||
run: |
|
SRS_RELEASE_ID: ${{ steps.create_draft.outputs.id }}
|
||||||
echo "SRS_RELEASE_ID=${{ steps.create_draft.outputs.id }}" >> $GITHUB_OUTPUT
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
cygwin64:
|
cygwin64:
|
||||||
|
@ -153,11 +151,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
release_id: ${{ env.SRS_RELEASE_ID }}
|
release_id: ${{ env.SRS_RELEASE_ID }}
|
||||||
assets_path: ${{ env.SRS_CYGWIN_TAR }}
|
assets_path: ${{ env.SRS_CYGWIN_TAR }}
|
||||||
# See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
# Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
|
||||||
- name: Set output
|
outputs:
|
||||||
run: |
|
SRS_CYGWIN_TAR: ${{ env.SRS_CYGWIN_TAR }}
|
||||||
echo "SRS_CYGWIN_TAR=${{ env.SRS_CYGWIN_TAR }}" >> $GITHUB_OUTPUT
|
SRS_CYGWIN_MD5: ${{ env.SRS_CYGWIN_MD5 }}
|
||||||
echo "SRS_CYGWIN_MD5=${{ env.SRS_CYGWIN_MD5 }}" >> $GITHUB_OUTPUT
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
|
@ -222,13 +219,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
release_id: ${{ env.SRS_RELEASE_ID }}
|
release_id: ${{ env.SRS_RELEASE_ID }}
|
||||||
assets_path: ${{ env.SRS_SOURCE_TAR }}
|
assets_path: ${{ env.SRS_SOURCE_TAR }}
|
||||||
# See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
# Map a step output to a job output, see https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
|
||||||
- name: Set output
|
outputs:
|
||||||
run: |
|
SRS_PACKAGE_ZIP: ${{ env.SRS_PACKAGE_ZIP }}
|
||||||
echo "SRS_PACKAGE_ZIP=${{ env.SRS_PACKAGE_ZIP }}" >> $GITHUB_OUTPUT
|
SRS_PACKAGE_MD5: ${{ env.SRS_PACKAGE_MD5 }}
|
||||||
echo "SRS_PACKAGE_MD5=${{ env.SRS_PACKAGE_MD5 }}" >> $GITHUB_OUTPUT
|
SRS_SOURCE_TAR: ${{ env.SRS_SOURCE_TAR }}
|
||||||
echo "SRS_SOURCE_TAR=${{ env.SRS_SOURCE_TAR }}" >> $GITHUB_OUTPUT
|
SRS_SOURCE_MD5: ${{ env.SRS_SOURCE_MD5 }}
|
||||||
echo "SRS_SOURCE_MD5=${{ env.SRS_SOURCE_MD5 }}" >> $GITHUB_OUTPUT
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
docker-srs:
|
docker-srs:
|
||||||
|
|
Loading…
Reference in a new issue