2023-10-27 02:19:51 +00:00
|
|
|
# Simple workflow for deploying static content to GitHub Pages
|
|
|
|
name: deploy-api-docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-12-16 01:47:11 +00:00
|
|
|
branches: ["master"]
|
2023-10-27 03:28:13 +00:00
|
|
|
paths: ["docs/**"] # only run if the docs are updated
|
2023-10-27 02:19:51 +00:00
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
|
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
|
|
concurrency:
|
|
|
|
group: "pages"
|
|
|
|
cancel-in-progress: false
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
2023-10-30 23:25:08 +00:00
|
|
|
if: github.repository == 'jellyfin/jellyfin-roku'
|
2023-10-27 02:19:51 +00:00
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-10-27 02:20:17 +00:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
2023-10-27 02:19:51 +00:00
|
|
|
- name: Setup Pages
|
2023-12-04 19:11:49 +00:00
|
|
|
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4
|
2023-10-27 02:19:51 +00:00
|
|
|
- name: Upload artifact
|
2024-02-07 09:56:24 +00:00
|
|
|
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
|
2023-10-27 02:19:51 +00:00
|
|
|
with:
|
|
|
|
# Only upload the api docs folder
|
2023-10-27 03:00:28 +00:00
|
|
|
path: "docs/api"
|
2023-10-27 02:19:51 +00:00
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
id: deployment
|
2024-02-06 01:09:24 +00:00
|
|
|
uses: actions/deploy-pages@decdde0ac072f6dcbe43649d82d9c635fff5b4e4 # v4
|