doc: fix workflow

This commit is contained in:
Artemy 2023-08-09 10:05:44 +03:00
parent d744b80f94
commit 33d64ddfa1

View file

@ -2,24 +2,21 @@ name: Deploy docs
on: on:
push: push:
branches: [main] branches: [main]
permissions:
contents: write
jobs: jobs:
deploy: deploy:
name: Deploy docs name: Deploy docs
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install dependencies - name: Install dependencies
run: npm i run: npm i
- name: Build docs - name: Build docs
run: npm run docs run: npm run docs
- name: Deploy docs - name: Deploy docs
uses: JamesIves/github-pages-deploy-action@4.1.9 uses: JamesIves/github-pages-deploy-action@v4
with: with:
branch: gh-pages branch: gh-pages
folder: docs folder: docs