Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing #195

Merged
merged 6 commits into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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


Loading