Skip to content

Commit

Permalink
testing (#195)
Browse files Browse the repository at this point in the history
* testing

* testing

* testing

* testing

* testing

* testing
  • Loading branch information
edwardhartnett authored Jul 18, 2024
1 parent 4f1ba6c commit 5a30f1a
Showing 1 changed file with 27 additions and 11 deletions.
38 changes: 27 additions & 11 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: true

jobs:
docs:
build-docs:
runs-on: ubuntu-latest
env:
FC: gfortran
Expand All @@ -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
Expand Down Expand Up @@ -83,23 +83,39 @@ jobs:
path: ~/data
key: data-2

- name: Setup Pages
uses: actions/configure-pages@v4

- name: build
run: |
cd wgrib2
mkdir build
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


0 comments on commit 5a30f1a

Please sign in to comment.