Skip to content

Allow skiping corrupt ZipFiles #105

Allow skiping corrupt ZipFiles

Allow skiping corrupt ZipFiles #105

Workflow file for this run

---
name: Deploy online documentation
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install GRASS GIS and other dependencies
run: |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
sudo apt-get update -qq
sudo apt-get install -y -qq grass grass-dev grass-doc wget
- name: Fix GRASS GIS installation for g.extension (needed for Ubuntu 18.04 grass packages)
run: |
wget https://grass.osgeo.org/grass84/manuals/grass_logo.png
wget https://grass.osgeo.org/grass84/manuals/grassdocs.css
sudo mv grass_logo.png /usr/lib/grass84/docs/html/grass_logo.png
sudo mv grassdocs.css /usr/lib/grass84/docs/html/grassdocs.css
- name: Install the modules to directory called build
run: |
find ./src/ -maxdepth 2 -mindepth 2 -type d \
-iwholename "*[g|i|r|t|v|m|d|db]*.*" -exec bash -c \
'echo {} | awk -v FS="/" \
"{print(\"grass --tmp-location XY --exec g.extension prefix=build --verbose url=\"\$0 \" extension=\"\$4)}" \
| bash' \;
- name: Copy the page as index.html
run: |
echo "# Manual pages for actinia modules from NVE" > build/docs/html/index.md
echo " " >> build/docs/html/index.md
find ./src/ -maxdepth 2 -mindepth 2 -type d -iwholename "*[g|i|r|t|v|m|d|db]*.*" -exec \
bash -c 'echo {} | awk -v FS="/" "{print(\"- [\" \$4 \"](./\" \$4 \".html)\")}"' \; | \
sort >> build/docs/html/index.md
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs/html
publish_branch: gh-pages
enable_jekyll: true