mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-10-30 02:12:32 +00:00
[WIFI-11729] Fix: gh-pages file
Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
4
.github/workflows/openapi-pages.yml
vendored
4
.github/workflows/openapi-pages.yml
vendored
@@ -24,8 +24,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Update OpenAPI docs
|
- name: Update OpenAPI docs
|
||||||
run: |
|
run: |
|
||||||
mkdir tmp-docs
|
|
||||||
mv index.html tmp-docs/index.html
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
|
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
|
||||||
echo https://tip-automation:${{ secrets.GIT_PUSH_PAT }}@github.com > ~/.git-credentials
|
echo https://tip-automation:${{ secrets.GIT_PUSH_PAT }}@github.com > ~/.git-credentials
|
||||||
@@ -34,7 +32,7 @@ jobs:
|
|||||||
git config --global user.name "TIP Automation User"
|
git config --global user.name "TIP Automation User"
|
||||||
git pull
|
git pull
|
||||||
git checkout gh-pages || git checkout -b gh-pages
|
git checkout gh-pages || git checkout -b gh-pages
|
||||||
mv tmp-docs docs
|
mv index.html docs/index.html
|
||||||
git add docs
|
git add docs
|
||||||
git commit -m'Update OpenAPI docs for GitHub pages'
|
git commit -m'Update OpenAPI docs for GitHub pages'
|
||||||
git push --set-upstream origin gh-pages
|
git push --set-upstream origin gh-pages
|
||||||
|
|||||||
Reference in New Issue
Block a user