From 69f99282339b0baaa6b45e85a8e785c962e7b978 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Sun, 29 Jun 2025 22:13:55 +0200 Subject: [PATCH 1/2] add docs workflow --- .github/workflows/docs.yml | 30 ++++++++++++++++++++++++++++++ docs/make.jl | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..48e93c5 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,30 @@ +name: Documentation + +on: + pull_request: + push: + branches: + - 'master' + - 'release-' + tags: '*' + release: + types: [published] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@latest + with: + version: 1 + - uses: julia-actions/cache@v2 + - name: Install dependencies + run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + - name: Build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: julia --project=docs/ docs/make.jl diff --git a/docs/make.jl b/docs/make.jl index e1b3fd5..56c37e5 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -17,6 +17,6 @@ makedocs( ) deploydocs( - repo = "github.com/traktofon/FortranFiles.jl.git", + repo = "github.com/JuliaData/FortranFiles.jl.git", branch = "gh-pages" ) From c28d2719e47cd95425389f7e8b499d9b5cd7d570 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Sun, 29 Jun 2025 22:15:11 +0200 Subject: [PATCH 2/2] build docs --- .github/workflows/docs.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 48e93c5..299cfe9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,4 +1,4 @@ -name: Documentation +name: docs on: pull_request: @@ -19,12 +19,11 @@ jobs: steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest - with: - version: 1 - uses: julia-actions/cache@v2 - name: Install dependencies run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' - name: Build and deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{secrets.DOCUMENTER_KEY}} run: julia --project=docs/ docs/make.jl