From 0e5e9916a8aabbb4e0313e3edc06e32608d811f8 Mon Sep 17 00:00:00 2001 From: Benjamin Chu Date: Sun, 10 Dec 2023 23:38:59 -0800 Subject: [PATCH] fix CI --- .github/workflows/CI.yml | 6 ++++-- .github/workflows/documentation.yml | 33 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c663c75d..3a8063ab 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -5,7 +5,7 @@ on: schedule: - cron: '0 2 * * *' # Daily at 2 AM UTC (8 PM CST) push: - branches: [master] + branches: [main] tags: ["*"] pull_request: jobs: @@ -77,7 +77,9 @@ jobs: - run: | # add unregistered packages first julia --project=docs -e ' using Pkg - pkg"add https://github.com/biona001/GhostKnockoffGWAS.jl"' + Pkg.add(url="https://github.com/biona001/ghostbasil_jll.jl") + Pkg.add(url="https://github.com/biona001/Ghostbasil.jl") + Pkg.add(url="https://github.com/biona001/GhostKnockoffGWAS")' - run: | julia --project=docs -e ' using Pkg diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000..088f95f0 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,33 @@ +name: Documentation + +on: + push: + branches: + - main # update to match your development branch (master, main, dev, trunk, ...) + tags: '*' + pull_request: + +jobs: + build: + permissions: + contents: write + statuses: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v1 + with: + version: '1.6' + - run: | # add unregistered packages first + julia --project=docs -e ' + using Pkg + Pkg.add(url="https://github.com/biona001/ghostbasil_jll.jl") + Pkg.add(url="https://github.com/biona001/Ghostbasil.jl") + Pkg.add(url="https://github.com/biona001/GhostKnockoffGWAS")' + - 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 }} # 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