-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
66 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,13 @@ jobs: | |
with: | ||
path: ~/.cache/pip3 | ||
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.npm | ||
~/.autorest | ||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | ||
- run: pip3 install -r docs/requirements.txt | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "GitHub Action" | ||
- run: mike deploy --push develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,14 @@ jobs: | |
with: | ||
path: ~/.cache/pip3 | ||
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.npm | ||
~/.autorest | ||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | ||
- run: pip3 install -r docs/requirements.txt | ||
- run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "GitHub Action" | ||
- run: mike deploy --push --update-aliases $RELEASE_VERSION latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
[ ! -d "node_modules" ] && npm i | ||
npm run docs:examples | ||
npm run docs:api | ||
|
||
# TODO: revisit --ignore-scripts after solving https://github.com/npm/cli/issues/4202 | ||
perl -i -pe 's/"prepare"/"rem-prepare"/g' package.json | ||
mkdir -p docs/examples/browser | ||
|
||
echo Build example aepp | ||
cd ./examples/browser/aepp | ||
npm i | ||
VUE_APP_WALLET_URL=../wallet-iframe/ PUBLIC_PATH=./ npm run build | ||
mv -f dist/ ../../../docs/examples/browser/aepp | ||
|
||
echo Build example wallet-iframe | ||
cd ../wallet-iframe | ||
npm i | ||
VUE_APP_AEPP_URL=../aepp/ PUBLIC_PATH=./ npm run build | ||
mv -f dist/ ../../../docs/examples/browser/wallet-iframe | ||
|
||
echo Build example wallet-web-extension | ||
cd ../wallet-web-extension | ||
npm i | ||
NODE_OPTIONS=--openssl-legacy-provider npm run build | ||
mv artifacts/wallet-web-extension-v0.1.0-production.zip ../../../docs/examples/browser/wallet-web-extension.zip | ||
|
||
cd ../../.. | ||
perl -i -pe 's/"rem-prepare"/"prepare"/g' package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters