diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..299cfe9 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,29 @@ +name: docs + +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 + - 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 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" )