Skip to content

Commit

Permalink
Add the web client package to the release
Browse files Browse the repository at this point in the history
  • Loading branch information
philippewarren committed May 29, 2024
1 parent 0c445ac commit fba9a1b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/gen-doc-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
workflow_dispatch:
branches: [main]


jobs:
build-gen-doc-and-release:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -42,7 +41,6 @@ jobs:
python -m pip install --user --upgrade numpy
python -m pip install --user -r signaling-server/requirements.txt
- name: Generate C++ Documentation
working-directory: doc/cpp
run: |
Expand Down Expand Up @@ -87,9 +85,24 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{ steps.generate_version_output.outputs.version }}
release_name: opentera-webrtc-native-client-${{ steps.generate_version_output.outputs.version }}
release_name: opentera-webrtc-${{ steps.generate_version_output.outputs.version }}
body: |
Latest build of opentera-webrtc-native-client v${{ steps.generate_version_output.outputs.version }}
Latest build of opentera-webrtc v${{ steps.generate_version_output.outputs.version }}
- Please see API documentation at https://introlab.github.io/opentera-webrtc
draft: false
prerelease: false
draft: true
prerelease: true

- name: Create opentera-webrtc-web-client package archive
working-directory: opentera-webrtc-web-client
run: tar -czvf opentera-webrtc-web-client-${{ steps.generate_version_output.outputs.version }}.tar.gz package.json index.js webpack.config.js README.md src

- name: Upload opentera-webrtc-web-client package
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./opentera-webrtc-web-client/opentera-webrtc-web-client-${{ steps.generate_version_output.outputs.version }}.tar.gz
asset_name: opentera-webrtc-web-client-${{ steps.generate_version_output.outputs.version }}.tar.gz
asset_content_type: application/x-tgz
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.3
1.1.4

0 comments on commit fba9a1b

Please sign in to comment.