diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000000..5ea4ab0a411 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build Documentation + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository contents + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Build docs + run: | + ./scripts/travis_build_docs.sh + + - name: After success steps + if: ${{ success() }} + run: | + echo "COMMIT=${{ github.sha }}" >> $GITHUB_ENV + touch ./build/html/.nojekyll + if [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref }}" = "refs/heads/main" ]; then + echo "publish website" + ./scripts/travis_deploy_website.sh build /tmp + fi + + notifications: + irc: + channels: + - libera.chat#mapserver + use_notice: true + on_success: always + on_failure: always diff --git a/en/installation/iis.txt b/en/installation/iis.txt index 51a9b96be36..7cb6c9ee34d 100644 --- a/en/installation/iis.txt +++ b/en/installation/iis.txt @@ -222,6 +222,14 @@ Alternatively it can beset from the command line with the following command: %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='C:\MapServer\bin\mapserv.exe'].environmentVariables.[name='MAPSERVER_CONFIG_FILE',value='C:\MapServer\apps\mapserver.conf']" /commit:apphost +Or using PowerShell: + +.. code-block:: ps + + $configPath = "system.webServer/fastCgi/application[@fullPath='C:\MapServer\bin\mapserv.exe']/environmentVariables" + Add-WebConfiguration $configPath -Value @{ "Name" = "MAPSERVER_CONFIG_FILE"; "Value" = "C:\MapServer\apps\mapserver.conf" } + + Setting up Applications ----------------------- diff --git a/scripts/travis_deploy_website.sh b/scripts/travis_deploy_website.sh index 6f3ffc9c557..6d0d4ac1054 100755 --- a/scripts/travis_deploy_website.sh +++ b/scripts/travis_deploy_website.sh @@ -25,5 +25,5 @@ git config user.name "MapServer deploybot" #rm -rf .doctrees */.doctrees */.buildinfo git add -A -git commit -m "update with results of commit https://github.com/mapserver/MapServer-documentation/commit/$TRAVIS_COMMIT" +git commit -m "update with results of commit https://github.com/mapserver/MapServer-documentation/commit/$COMMIT" git push origin master diff --git a/scripts/travis_update_pages.sh b/scripts/travis_update_pages.sh index 2d43774f87f..20219d1de4d 100755 --- a/scripts/travis_update_pages.sh +++ b/scripts/travis_update_pages.sh @@ -7,7 +7,7 @@ git config user.email "mapserverbot@mapserver.bot" git config user.name "MapServer deploybot" # clone without any existing files -git clone --no-checkout --depth=1 git@github.com:mapserver/MapServer-documentation.git $destdir/MapServer-documentation +git clone --no-checkout --depth=1 git@github.com:geographika/MapServer-documentation.git $destdir/MapServer-documentation cd $destdir/MapServer-documentation git checkout -B gh-pages @@ -22,5 +22,5 @@ cd $destdir/MapServer-documentation touch .nojekyll git add -A -git commit -m "update with results of commit https://github.com/mapserver/MapServer-documentation/commit/$TRAVIS_COMMIT" --quiet +git commit -m "update with results of commit https://github.com/geographika/MapServer-documentation/commit/$COMMIT" --quiet git push origin gh-pages --force