diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml new file mode 100644 index 0000000..af505d2 --- /dev/null +++ b/.github/workflows/Documentation.yml @@ -0,0 +1,22 @@ +name: Documentation +on: + push: + branches: + - main + tags: '*' + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@latest + with: + version: '1.9' + - 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 }} # For authentication with GitHub Actions token + run: julia --project=docs/ docs/make.jl diff --git a/Project.toml b/Project.toml index 4f28183..b70a012 100644 --- a/Project.toml +++ b/Project.toml @@ -20,10 +20,17 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" [compat] -HypothesisTests = "0.11" +HypothesisTests = "0.10 - 0.11" SoleData = "0.12" StatsBase = "0.30 - 0.34" Random = "1" +Catch22 = "0.4, 0.5" +DataFrames = "1" +IterTools = "1" +OrderedCollections = "1" +PyCall = "1" +Reexport = "1" +Revise = "3" julia = "1" [extras] diff --git a/docs/make.jl b/docs/make.jl index 329a2e6..cb11a09 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -19,5 +19,8 @@ makedocs(; ) deploydocs(; - repo="github.com/aclai-lab/SoleFeatures.jl", + repo = "github.com/aclai-lab/SoleFeatures.jl", + target = "build", + branch = "gh-pages", + versions = ["main" => "main", "stable" => "v^", "v#.#", "dev" => "dev"], )