This drops appspot deployments entirely. - Latest stable release build of the demo: https://shaka-project.github.io/shaka-player-release/ - Latest dev build of the demo from `main`: https://shaka-project.github.io/shaka-player/ More cleanup is coming to turn down appspot and clean up any lingering references to it. Issue #9984
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
name: Deploy Nightly Demo on GitHub Pages
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# Allows for manual triggering.
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
# Build job
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: zulu
|
|
java-version: 21
|
|
|
|
- uses: ./.github/workflows/custom-actions/prep-demo-for-deployment
|
|
|
|
- name: Upload static files as artifact
|
|
id: nightly
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: .
|
|
|
|
# Deploy job
|
|
deploy:
|
|
# Add a dependency to the build job
|
|
needs: build
|
|
|
|
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
|
|
permissions:
|
|
pages: write # to deploy to Pages
|
|
id-token: write # to verify the deployment originates from an appropriate source
|
|
|
|
# Deploy to the github-pages environment
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
# Specify runner + deployment step
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: nightly
|
|
uses: actions/deploy-pages@v4
|