Skip to content

Commit

Permalink
Fix/network interceptor sample (#4432)
Browse files Browse the repository at this point in the history
* WiP: Adjust the Github CI actions to build network interceptor demo

* Adjust the Github actions to build the dist files for the samples
  • Loading branch information
dsilhavy committed Mar 21, 2024
1 parent ca3a434 commit 7ed9dc7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/deploy.yml
Expand Up @@ -9,6 +9,9 @@ on:
deploy_path:
required: true
type: string
samples:
required: true
type: string
secrets:
host:
required: true
Expand All @@ -20,7 +23,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
Expand All @@ -39,10 +42,19 @@ jobs:
find: "<!-- commit-info -->"
replace: ${{env.replacement_string}}
include: "samples/dash-if-reference-player/index.html"
- name: Build all samples
run: |
for sample in ${{fromJson(inputs.samples)}}; do
echo "Building sample: $sample"
cd samples/$sample
npm install
npm run build
rm -rf node_modules
done
- name: Copy to deploy directory for deployment
run: |
mkdir ${{inputs.envname}}
cp -R contrib dist samples test/functional/config test/functional/tests ${{inputs.envname}}
cp -R contrib dist samples test/functional/config test/functional/tests ${{inputs.envname}}
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_latest.yml
Expand Up @@ -12,6 +12,7 @@ jobs:
with:
envname: latest
deploy_path: '/377335/dash.js'
samples: '["network-interceptor"]'
secrets:
host: ${{secrets.HOST}}
user: ${{secrets.USER}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_nightly.yml
Expand Up @@ -12,6 +12,7 @@ jobs:
with:
envname: nightly
deploy_path: '/377335/dash.js'
samples: '["network-interceptor"]'
secrets:
host: ${{secrets.HOST}}
user: ${{secrets.USER}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_v4_latest.yml
Expand Up @@ -12,6 +12,7 @@ jobs:
with:
envname: v4_latest
deploy_path: '/377335/dash.js'
samples: '[]'
secrets:
host: ${{secrets.HOST}}
user: ${{secrets.USER}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_v4_nightly.yml
Expand Up @@ -12,6 +12,7 @@ jobs:
with:
envname: v4_nightly
deploy_path: '/377335/dash.js'
samples: '[]'
secrets:
host: ${{secrets.HOST}}
user: ${{secrets.USER}}
Expand Down

0 comments on commit 7ed9dc7

Please sign in to comment.