@@ -4,7 +4,7 @@ name: Deploy static content to Pages
44on :
55 # Runs on pushes targeting the default branch
66 push :
7- branches : [" main" ]
7+ branches : [' main' ]
88
99 # Allows you to run this workflow manually from the Actions tab
1010 workflow_dispatch :
@@ -18,7 +18,7 @@ permissions:
1818# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1919# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2020concurrency :
21- group : " pages"
21+ group : ' pages'
2222 cancel-in-progress : false
2323
2424jobs :
@@ -30,33 +30,33 @@ jobs:
3030 runs-on : ubuntu-latest
3131 steps :
3232 - name : Update submodules
33- run : |
34- git clone -b release/documentation --single-branch --depth 1 https://git:${{ secrets.SRC_TOKEN }}@github.com/veracity-engineering /WebAppTemplate.git docs/articles
35-
36- git clone -b gh-pages --single-branch --depth 1 --depth 1 https://github.com/veracity-engineering /WebAppTemplateDoc.git docs/_site
37-
33+ run : |
34+ git clone -b release/documentation --single-branch --depth 1 https://git:${{ secrets.SRC_TOKEN }}@github.com/dnvgl /WebAppTemplate.git docs/articles
35+
36+ git clone -b gh-pages --single-branch --depth 1 --depth 1 https://github.com/dnvgl /WebAppTemplateDoc.git docs/_site
37+
3838 - name : Use Node
3939 uses : actions/setup-node@v3
4040 with :
41- node-version : ' 18.x'
42-
41+ node-version : ' 18.x'
42+
4343 - name : Check files
4444 run : |
45- ls
46- cd docs/articles/website
47- ls
48-
45+ ls
46+ cd docs/articles/website
47+ ls
48+
4949 - name : Build artifacts
5050 run : |
51- ls
52- cd docs/articles/website
53- echo "::debug::Install npm packages"
54- npm install --force
55- npm run build-git
51+ ls
52+ cd docs/articles/website
53+ echo "::debug::Install npm packages"
54+ npm install --force
55+ npm run build-git
5656 - name : Moving files
5757 run : |
5858 cp -R docs/articles/website/build/* docs/_site/
59-
59+
6060 - name : Push to branch
6161 run : |
6262 cd docs/_site
6969 git commit -m "Update docs" || echo "No change to commit"
7070
7171 echo "::debug::Push commit to remote"
72- git push -f https://git:${{ secrets.SRC_TOKEN }}@github.com/veracity-engineering /WebAppTemplateDoc.git HEAD:gh-pages
72+ git push -f https://git:${{ secrets.SRC_TOKEN }}@github.com/dnvgl /WebAppTemplateDoc.git HEAD:gh-pages
7373
74-
75-
7674# - name: Publish pages
7775# env:
7876# SRC_FOLDER_PATH: 'docs/articles/website/docs'
@@ -88,16 +86,13 @@ jobs:
8886# git add -A
8987# git diff-index --quiet HEAD || git commit -am "deploy files" # commit to the repository (ignore if no modification)
9088# git push origin $TARGET_BRANCH # push to remote branch
91-
92-
93-
94-
89+
9590# - name: Publish gh-pages
9691# run: |
9792# #cd docs/articles/website
9893# #ls
9994# cd docs/_site
100-
95+
10196# echo "::debug::Add new files to git"
10297# git fetch
10398# git add .
0 commit comments