diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 6634af7..91486e4 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -17,4 +17,22 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: '1' - \ No newline at end of file + - name: Setup general registery local registry + run: | + julia --project=docs docs/add_local_registry.jl + - name: Install dependencies + # see https://discourse.julialang.org/t/hosting-docs-with-documenter-jl-with-dependencies-github-actions-with-unregistered-packages/83364/10 + run: | + julia --project=docs/ -e ' + using Pkg; + Pkg.develop(PackageSpec(path=pwd())); + Pkg.instantiate()' + - name: Build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key + run: julia --project=docs/ --code-coverage=user docs/make.jl + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v1 + with: + file: lcov.info