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