fix: docs workflow
This commit is contained in:
16
.github/workflows/docs.yaml
vendored
16
.github/workflows/docs.yaml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: get the gh-pages repo
|
- name: get the gh-pages repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: gh-pages
|
ref: gh-pages
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
tar -cvf documentation.tar ./docs
|
tar -cvf documentation.tar ./docs
|
||||||
|
|
||||||
- name: create a document artifact
|
- name: create a document artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: documentation
|
name: documentation
|
||||||
path: documentation.tar
|
path: documentation.tar
|
||||||
@@ -29,17 +29,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout src
|
- name: Checkout src
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: mkdir -p ./docs
|
- run: mkdir -p ./docs
|
||||||
- name: Download the existing documents artifact
|
- name: Download the existing documents artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: documentation
|
name: documentation
|
||||||
- run: tar -xf documentation.tar ./docs -C ./docs
|
- run: tar -xf documentation.tar ./docs -C ./docs
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
run: tar -cvf newdocumentation.tar ./docs
|
run: tar -cvf newdocumentation.tar ./docs
|
||||||
|
|
||||||
- name: create a new document artifact
|
- name: create a new document artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: newdocumentation
|
name: newdocumentation
|
||||||
path: newdocumentation.tar
|
path: newdocumentation.tar
|
||||||
@@ -63,13 +63,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout the gh-pages repo
|
- name: checkout the gh-pages repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: gh-pages
|
ref: gh-pages
|
||||||
|
|
||||||
- run: mkdir -p ./docs
|
- run: mkdir -p ./docs
|
||||||
- name: Download the new documents artifact
|
- name: Download the new documents artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: newdocumentation
|
name: newdocumentation
|
||||||
- run: tar -xf newdocumentation.tar ./docs -C ./docs
|
- run: tar -xf newdocumentation.tar ./docs -C ./docs
|
||||||
|
|||||||
Reference in New Issue
Block a user