-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #303 from bitmovin/release/v0.13.0
Release 0.13.0
- Loading branch information
Showing
98 changed files
with
2,859 additions
and
1,065 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Generate documentation | ||
on: | ||
workflow_call: | ||
secrets: | ||
GH_TOKEN: | ||
description: GitHub token to access player-ci repo for CI scripts | ||
required: true | ||
GCS_ACCOUNT: | ||
description: Google Cloud Storage account for uploading API docs | ||
required: true | ||
CF_TOKEN: | ||
description: CloudFlare token for API docs cache purging | ||
required: true | ||
CF_ZONEID: | ||
description: CloudFlare zone ID for API docs cache purging | ||
required: true | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
LC_ALL: en_US.UTF-8 | ||
LANG: en_US.UTF-8 | ||
|
||
jobs: | ||
generate-documentation: | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GC_SACCOUNT: ${{ secrets.GCS_ACCOUNT }} | ||
CF_TOKEN: ${{ secrets.CF_TOKEN }} | ||
CF_ZONEID: ${{ secrets.CF_ZONEID }} | ||
|
||
name: Generate documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup node and npm registry | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
registry-url: 'https://registry.npmjs.org/' | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Install dependencies (example/) | ||
run: yarn example install --frozen-lockfile | ||
|
||
- name: Detect version using jq | ||
run: | | ||
echo "PCI_BRANCH=$(jq -r '.version' package.json)" >> $GITHUB_ENV | ||
- name: Generate documentation | ||
run: yarn docs | ||
|
||
- name: Install CI scripts | ||
run: | | ||
curl -sS -H "Authorization: token ${GH_TOKEN}" -L https://raw.githubusercontent.com/bitmovin-engineering/player-ci/master/install.sh | bash | ||
- name: Upload to CDN | ||
run: node ./ci_scripts/src/uploadToGcs.js reactnative ../../docs/generated | ||
|
||
- name: Purge CDN cache | ||
run: node ./ci_scripts/src/purgeCloudflarePath.js 'reactnative' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,3 +64,6 @@ android/keystores/debug.keystore | |
|
||
# generated by bob | ||
lib/ | ||
|
||
# generated API documentation | ||
docs/generated |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
if [[ "$(uname -m)" == arm64 ]]; then | ||
export PATH="/opt/homebrew/bin:$PATH" | ||
fi | ||
|
||
yarn lint-staged | ||
|
||
if [ "$(uname)" == "Darwin" ]; then | ||
swiftlint lint --strict | ||
fi |
Oops, something went wrong.