diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 03759b69..5283f823 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true jobs: - docs: + build-docs: runs-on: ubuntu-latest env: FC: gfortran @@ -30,7 +30,7 @@ jobs: run: | sudo apt-get update sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config - sudo apt-get install libpng-dev autotools-dev libaec-dev autoconf gcovr doxygen + sudo apt-get install libpng-dev libaec-dev doxygen - name: cache-jasper id: cache-jasper @@ -83,9 +83,6 @@ jobs: path: ~/data key: data-2 - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: build run: | cd wgrib2 @@ -93,13 +90,32 @@ jobs: cd build cmake .. -DENABLE_DOCS=ON -DCMAKE_PREFIX_PATH="~/ip" make VERBOSE=1 - - - name: Upload built documentation - uses: actions/upload-pages-artifact@v1 + + - name: upload + uses: actions/upload-artifact@master with: - path: wgrib2/build/docs/html # Path to the built site files + name: page + path: wgrib2/build/docs/html + if-no-files-found: error + + deploy-docs: + runs-on: ubuntu-latest + needs: build-docs + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} + + steps: + - uses: actions/download-artifact@master + with: + name: page + path: . + - uses: actions/configure-pages@v1 + - uses: actions/upload-pages-artifact@v1 + with: + path: . + - id: deployment + uses: actions/deploy-pages@main - - name: Deploy - uses: actions/deploy-pages@v1