Collect all acknowledgments as part of the NPM publish workflow
This commit is contained in:
parent
974eebd4cf
commit
25bcf40ad1
48
.github/workflows/npm.yml
vendored
48
.github/workflows/npm.yml
vendored
@ -84,6 +84,14 @@ jobs:
|
||||
path: out-arm/release/libringrtc-*-linux-arm64-debuginfo.tar.bz2
|
||||
retention-days: 120
|
||||
|
||||
- name: Upload WebRTC Acknowledgments
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: webrtc-acknowledgments-linux
|
||||
path: |
|
||||
out/release/LICENSE.md
|
||||
out-arm/release/LICENSE.md
|
||||
|
||||
build_windows:
|
||||
name: Build Windows
|
||||
|
||||
@ -133,6 +141,14 @@ jobs:
|
||||
path: out-arm/release/libringrtc-*-win32-arm64-debuginfo.tar.bz2
|
||||
retention-days: 120
|
||||
|
||||
- name: Upload WebRTC Acknowledgments
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: webrtc-acknowledgments-windows
|
||||
path: |
|
||||
out/release/LICENSE.md
|
||||
out-arm/release/LICENSE.md
|
||||
|
||||
build_mac:
|
||||
name: Build macOS
|
||||
|
||||
@ -178,6 +194,15 @@ jobs:
|
||||
path: out-arm/release/libringrtc-*-darwin-arm64-debuginfo.tar.bz2
|
||||
retention-days: 120
|
||||
|
||||
- name: Upload WebRTC Acknowledgments
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: webrtc-acknowledgments-mac
|
||||
path: |
|
||||
out/release/LICENSE.md
|
||||
out-arm/release/LICENSE.md
|
||||
|
||||
|
||||
aggregate_desktop:
|
||||
name: Aggregate Desktop
|
||||
|
||||
@ -267,6 +292,29 @@ jobs:
|
||||
- run: xvfb-run --auto-servernum yarn test
|
||||
working-directory: src/node/
|
||||
|
||||
# Collect RingRTC and WebRTC acknowledgments into one file.
|
||||
- name: Download Windows Acknowledgments
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: webrtc-acknowledgments-windows
|
||||
path: acknowledgments/webrtc-windows/
|
||||
|
||||
- name: Download macOS Acknowledgments
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: webrtc-acknowledgments-mac
|
||||
path: acknowledgments/webrtc-mac/
|
||||
|
||||
- name: Download Linux Acknowledgments
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: webrtc-acknowledgments-linux
|
||||
path: acknowledgments/webrtc-linux/
|
||||
|
||||
- run: cp acknowledgments/acknowledgments.md src/node/dist
|
||||
- run: bin/convert_webrtc_acknowledgments.py --format md acknowledgments/webrtc-*/*/*/LICENSE.md >> src/node/dist/acknowledgments.md
|
||||
|
||||
# Finally, publish to NPM. Or upload a pack, for a dry run.
|
||||
- run: npm publish --access public
|
||||
if: ${{ !inputs.dry_run }}
|
||||
working-directory: src/node/
|
||||
|
||||
3257
acknowledgments/acknowledgments.md
Normal file
3257
acknowledgments/acknowledgments.md
Normal file
File diff suppressed because it is too large
Load Diff
12
acknowledgments/acknowledgments.md.hbs
Normal file
12
acknowledgments/acknowledgments.md.hbs
Normal file
@ -0,0 +1,12 @@
|
||||
# Acknowledgments
|
||||
|
||||
RingRTC makes use of the following open source projects.
|
||||
|
||||
{{#each licenses}}
|
||||
## {{#each used_by}}{{#unless @first}}, {{/unless}}{{crate.name}} {{crate.version}}{{/each}}
|
||||
|
||||
```
|
||||
{{{text}}}
|
||||
```
|
||||
|
||||
{{/each}}
|
||||
@ -73,8 +73,10 @@ def parse(input: TextIO, filename: str) -> Dict[str, str]:
|
||||
|
||||
|
||||
def print_as_markdown(deps: Iterable[Tuple[str, str]]) -> None:
|
||||
# We're approximating the format in Signal-Desktop/ACKNOWLEDGMENTS.plist
|
||||
for name, license in deps:
|
||||
print('#', name)
|
||||
print('##', name)
|
||||
print()
|
||||
print('```')
|
||||
# The license already has a trailing newline.
|
||||
print(license, end='')
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
"dist/*.d.ts",
|
||||
"dist/ringrtc/*.js",
|
||||
"dist/ringrtc/*.d.ts",
|
||||
"dist/acknowledgments.md",
|
||||
"scripts/fetch-prebuild.js"
|
||||
],
|
||||
"scripts": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user