Skip to content

Commit

Permalink
externalize gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap authored Nov 28, 2022
1 parent fa02a45 commit 70f31d8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##########
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 70f31d8

Please sign in to comment.