Update msplugin block configured (#2307) (#2310) #514
This file contains hidden or 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
| # Simple workflow for deploying static content to GitHub Pages | |
| name: Deploy static 5.0.x branch content to Pages | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: ["5.0.x"] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow one concurrent deployment | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 5.0.x | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: 5.0.x | |
| - name: "Setting up npm" | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install build dependencies | |
| run: | | |
| npm install [email protected] -g | |
| npm install @jsdoc/[email protected] -g | |
| - name: Restore previous github-pages artifact | |
| run: | | |
| wget https://geonode.org/geonode-mapstore-client/artifact.zip | |
| unzip artifact.zip | |
| mv gh-pages/ ../gh-pages | |
| - name: Build 5.0.x documentation | |
| run: | | |
| cd ./geonode_mapstore_client/client/ | |
| npm run docs | |
| cd ../../ | |
| cp -a ./geonode_mapstore_client/static/fonts/. ./docs/fonts/ | |
| rm -rf ../gh-pages/5.0.x | |
| mv ./docs ../gh-pages/5.0.x | |
| cd ../ | |
| zip -r artifact.zip gh-pages/ | |
| mv artifact.zip gh-pages/artifact.zip | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v2 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| # Upload entire repository | |
| name: github-pages | |
| path: '../gh-pages' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |