forked from geosolutions-it/geonode-mapstore-client
-
Notifications
You must be signed in to change notification settings - Fork 112
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
1 parent
fa02a45
commit 70f31d8
Showing
1 changed file
with
7 additions
and
5 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 |
---|---|---|
|
@@ -28,8 +28,10 @@ jobs: | |
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
- name: Checkout master | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
############ | ||
# CACHING | ||
########## | ||
|
@@ -46,14 +48,14 @@ jobs: | |
${{ runner.os }}- | ||
- name: Install build dependencies | ||
run: | | ||
mkdir ./gh-pages | ||
mkdir ../gh-pages | ||
npm install [email protected] -g | ||
- name: Build master documentation | ||
run: | | ||
cd ./geonode_mapstore_client/client/ | ||
npm run docs | ||
cd ../../ | ||
mv ./docs ./gh-pages/master | ||
mv ./docs ../gh-pages/master | ||
- name: Checkout 4.1.x | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -63,14 +65,14 @@ jobs: | |
cd ./geonode_mapstore_client/client/ | ||
npm run docs | ||
cd ../../ | ||
mv ./docs ./gh-pages/4.1.x | ||
mv ./docs ../gh-pages/4.1.x | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v2 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
# Upload entire repository | ||
path: './gh-pages' | ||
path: '../gh-pages' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |