diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2c18dd1..7b13fb5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -36,28 +36,28 @@ jobs: env: PYTHON: "" - uses: julia-actions/julia-runtest@v1 - docs: - name: Documentation - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 - with: - version: '1' - - run: | - julia --project=docs -e ' - using Pkg - Pkg.develop(PackageSpec(path=pwd())) - Pkg.instantiate()' - env: - PYTHON: "" - - run: | - julia --project=docs -e ' - using Documenter: DocMeta, doctest - using PyThermo - DocMeta.setdocmeta!(PyThermo, :DocTestSetup, :(using PyThermo); recursive=true) - doctest(PyThermo)' - - run: julia --project=docs docs/make.jl - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} + # docs: + # name: Documentation + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v2 + # - uses: julia-actions/setup-julia@v1 + # with: + # version: '1' + # - run: | + # julia --project=docs -e ' + # using Pkg + # Pkg.develop(PackageSpec(path=pwd())) + # Pkg.instantiate()' + # env: + # PYTHON: "" + # - run: | + # julia --project=docs -e ' + # using Documenter: DocMeta, doctest + # using PyThermo + # DocMeta.setdocmeta!(PyThermo, :DocTestSetup, :(using PyThermo); recursive=true) + # doctest(PyThermo)' + # - run: julia --project=docs docs/make.jl + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml new file mode 100644 index 0000000..0ca9eb5 --- /dev/null +++ b/.github/workflows/Documentation.yml @@ -0,0 +1,35 @@ +name: Documentation + +on: + push: + branches: + - main # update to match your development branch (master, main, dev, trunk, ...) + tags: '*' + pull_request: + +jobs: + build: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: '1.6' + - name: Install dependencies + run: | + julia --project=docs/ -e ' + using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + - name: Test docs + run: | + julia --project=docs -e ' + using Documenter: DocMeta, doctest + using PyThermo + DocMeta.setdocmeta!(PyThermo, :DocTestSetup, :(using PyThermo); recursive=true) + doctest(PyThermo)' + - name: Build and deploy + env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key + run: julia --project=docs/ docs/make.jl \ No newline at end of file