bigbluebutton-Github/.github/workflows/deploy-docs.yml
Stefan Weil 39406d0d42 Update GitHub actions checkout, cache and upload-artifact from v3 to v4
This fixes several CI warnings like this one:

    Node.js 16 actions are deprecated.
    Please update the following actions to use Node.js 20: actions/checkout@v3,
    actions/cache@v3, actions/upload-artifact@v3. For more information see:
    https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Signed-off-by: Stefan Weil <sw@weilnetz.de>

Update more GitHub actions from v3 to v4

Signed-off-by: Stefan Weil <sw@weilnetz.de>

Change upload and download to work with v4

Signed-off-by: Stefan Weil <sw@weilnetz.de>

Update GitHub action eps1lon/actions-label-merge-conflict

Signed-off-by: Stefan Weil <sw@weilnetz.de>

Update GitHub action nick-fields/retry

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2024-03-25 12:01:24 -03:00

61 lines
1.2 KiB
YAML

name: Build and Deploy Docs
on:
workflow_dispatch:
push:
branches:
- 'develop'
paths:
- 'docs/**'
# Do not build the docs concurrently
concurrency:
group: docs
cancel-in-progress: true
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
# Setup
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: ./docs/package-lock.json
- name: Install dependencies
run: npm ci
# Build static docs
- name: Build all versions
run: ./build.sh
- name: Build website
run: npm run docusaurus build
- name: upload build artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs/build
deploy:
name: Deploy docs to gh-pages
needs: build
permissions:
pages: write
id-token: write
environment:
name: Documentation
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1