Merge pull request #708 from red5pro/bug/RED5DEV-2013 #22
Workflow file for this run
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: Release build (tag) | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| archive: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Rename dist → moqexamples and package | |
| env: | |
| TAG: ${{ github.ref_name }} | |
| run: | | |
| set -euxo pipefail | |
| mv dist moqexamples | |
| tar -czvf "streaming-html-${TAG}.tar.gz" webrtcexamples | |
| zip -rq "streaming-html-${TAG}.zip" webrtcexamples | |
| - name: Upload archives to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| streaming-html-${{ github.ref_name }}.tar.gz | |
| streaming-html-${{ github.ref_name }}.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |