Skip to content

Commit

Permalink
Updates workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Joey Carpinelli committed Dec 30, 2024
1 parent 437077b commit 1b83991
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 121 deletions.
File renamed without changes.
5 changes: 1 addition & 4 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: CompatHelper

on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
CompatHelper:
runs-on: ubuntu-latest
Expand All @@ -18,7 +15,7 @@ jobs:
run: which julia
continue-on-error: true
- name: Install Julia, but only if it is not already available in the PATH
uses: julia-actions/setup-julia@v1
uses: julia-actions/setup-julia@v2
with:
version: "1"
arch: ${{ runner.arch }}
Expand Down
101 changes: 19 additions & 82 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,93 +3,30 @@ name: Documentation
on:
push:
branches:
- main
- main # update to match your development branch (master, main, dev, trunk, ...)
tags: "*"
workflow_dispatch:
pull_request:

jobs:
deploy:
build:
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: julia-actions/setup-julia@latest

#
# EphemerisSourcesBase Documentation
#

- name: Install Documentation Dependencies for EphemerisSourcesBase
run: julia --project=lib/EphemerisSourcesBase/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "EphemerisSourcesBase"))); Pkg.instantiate()'

- name: Build and deploy EphemerisSourcesBase
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/EphemerisSourcesBase
run: julia --project=docs/ docs/make.jl

#
# HorizonsAPI Documentation
#

- name: Install Documentation Dependencies for HorizonsAPI
run: julia --project=lib/HorizonsAPI/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "HorizonsAPI"))); Pkg.instantiate()'

- name: Build and deploy HorizonsAPI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/HorizonsAPI
run: julia --project=docs/ docs/make.jl

#
# HorizonsEphemeris Documentation
#

- name: Install Documentation Dependencies for HorizonsEphemeris
run: julia --project=lib/HorizonsEphemeris/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "HorizonsEphemeris"))); Pkg.instantiate()'

- name: Build and deploy HorizonsEphemeris
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/HorizonsEphemeris
run: julia --project=docs/ docs/make.jl

#
# SPICEKernels Documentation
#

- name: Install Documentation Dependencies for SPICEKernels
run: julia --project=lib/SPICEKernels/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "SPICEKernels"))); Pkg.instantiate()'

- name: Build and deploy SPICEKernels
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/SPICEKernels
run: julia --project=docs/ docs/make.jl

#
# SPICEBodies Documentation
#

- name: Install Documentation Dependencies for SPICEBodies
run: julia --project=lib/SPICEBodies/docs -e 'using Pkg; Pkg.develop(PackageSpec(path = joinpath("lib", "SPICEBodies"))); Pkg.instantiate()'

- name: Build and deploy SPICEBodies
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
working-directory: lib/SPICEBodies
run: julia --project=docs/ docs/make.jl

- name: Install Documentation Dependencies
run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path = @__DIR__)); Pkg.instantiate()'

- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: "1"
- uses: quarto-dev/quarto-actions/setup@v2
- name: Install Jupyter
run: python -m pip install jupyter
- 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 }} # For authentication with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl
36 changes: 1 addition & 35 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: TagBot

on:
issue_comment:
types:
Expand All @@ -8,7 +7,6 @@ on:
inputs:
lookback:
default: "3"

permissions:
actions: read
checks: read
Expand All @@ -22,44 +20,12 @@ permissions:
repository-projects: read
security-events: read
statuses: read

jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- name: Tag EphemerisSourcesBase.jl
uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
subdir: lib/EphemerisSourcesBase
- name: Tag HorizonsAPI.jl
uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
subdir: lib/HorizonsAPI
- name: Tag HorizonsEphemeris.jl
uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
subdir: lib/HorizonsEphemeris
- name: Tag SPICEKernels.jl
uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
subdir: lib/SPICEKernels
- name: Tag SPICEBodies.jl
uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
subdir: lib/SPICEBodies
- name: Tag EphemerisSources.jl
uses: JuliaRegistries/TagBot@v1
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}

0 comments on commit 1b83991

Please sign in to comment.