Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit 8ae8213

Browse files
authored
Merge pull request #121 from nevermined-io/jcortejoso/push-to-docs
Update push-to-docs.yml
2 parents ebd1e1b + 9bff6d9 commit 8ae8213

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

.github/workflows/push-to-docs.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,35 @@ on:
88

99
jobs:
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+

0 commit comments

Comments
 (0)