[create-pull-request] automated change (#2287) #500
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 master branch content to Pages | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: ["master"] | |
| # 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 master | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: master | |
| - 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 master documentation | |
| run: | | |
| cd ./geonode_mapstore_client/client/ | |
| npm run docs | |
| cd ../../ | |
| cp -a ./geonode_mapstore_client/static/fonts/. ./docs/fonts/ | |
| rm -rf ../gh-pages/master | |
| mv ./docs ../gh-pages/master | |
| 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 |