Files
hedgedoc/.github/workflows/docs-netlify-deploy.yml
Erik Michelson 9558c5d50d
Docker / build-and-push (backend) (push) Has been cancelled
Docker / build-and-push (frontend) (push) Has been cancelled
E2E Tests / backend-sqlite (push) Has been cancelled
E2E Tests / backend-mariadb (push) Has been cancelled
E2E Tests / backend-postgres (push) Has been cancelled
Lint and check format / Lint files and check formatting (push) Has been cancelled
REUSE Compliance Check / reuse (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Static Analysis / Njsscan code scanning (push) Has been cancelled
Static Analysis / CodeQL analysis (javascript) (push) Has been cancelled
Run tests & build / Test and build with NodeJS 24 (push) Has been cancelled
chore(deps): upgrade netlify-cli to 26.0.0
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2026-05-03 20:30:22 +02:00

54 lines
1.3 KiB
YAML

# SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
#
# SPDX-License-Identifier: AGPL-3.0-only
name: Deploy HD2 docs to Netlify
on:
push:
branches: [ develop ]
paths: ['docs/**']
env:
# renovate: datasource=npm depName=netlify-cli
NETLIFY_VERSION: 26.0.0
NODEJS_VERSION: 24
PYTHON_VERSION: 3.11
defaults:
run:
working-directory: docs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploys to netlify
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Set up NodeJS
uses: actions/setup-node@v6.3.0
with:
node-version: ${{ env.NODEJS_VERSION }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build docs
run: mkdocs build
- name: Run netlify CLI deployment
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: "npx -y netlify-cli@${{ env.NETLIFY_VERSION }} deploy --prod --message \"${{ github.event.head_commit.id }}\""