Files
ShakaPlayer/.github/workflows/github-pages-nightly-demo.yaml
Joey Parrish 3aa0d3e897 ci: Deploy demo releases to GitHub Pages (#10041)
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
2026-04-29 19:58:08 -07:00

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