This repository was archived by the owner on Oct 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +32
-6
lines changed Expand file tree Collapse file tree 1 file changed +32
-6
lines changed Original file line number Diff line number Diff line change 88
99jobs :
1010 push-to-docs :
11- uses : nevermined-io/reusable-workflows/.github/workflows/push-to-docs.yml@main
12- with :
13- path-to-push : docs/architecture/components/catalog
14- repo-to-push : nvm-docs
15- branch-to-clone : main
16- secrets : inherit
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+ - uses : actions/setup-node@v1
15+ with :
16+ node-version : ' 16'
17+ - name : Install dependencies
18+ run : |
19+ yarn install --ignore-engines
20+ yarn run generate-doc
21+ - name : Install envsubst
22+ run : |
23+ sudo apt update
24+ sudo apt install -y gettext
25+ - name : Download push-to-docs script template
26+ run : |
27+ curl -o push-to-docs.sh.template https://raw.githubusercontent.com/nevermined-io/reusable-workflows/main/scripts/push-to-docs.sh
28+ - name : Replace env vars in push-to-docs script
29+ env :
30+ BRANCH_TO_CLONE : main
31+ REPO_TO_PUSH : nvm-docs
32+ PATH_TO_COPY : docs/
33+ PATH_TO_PUSH : docs/architecture/components/catalog
34+ REPOSITORY_NAME : ${{ github.repository }}
35+ API_TOKEN_GITHUB : ${{ secrets.API_TOKEN_GITHUB }}
36+ run : |
37+ export REPOSITORY_NAME=$(echo $REPOSITORY_NAME | awk -F '/' '{print $2}')
38+ envsubst < push-to-docs.sh.template > push-to-docs.sh
39+ env > env.file
40+ chmod +x push-to-docs.sh
41+ ./push-to-docs.sh
42+
You can’t perform that action at this time.
0 commit comments