Skip to content

Commit

Permalink
reorder deploy script constant definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 authored Sep 21, 2024
1 parent 82e83d9 commit 91f9bb9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions helpers/deploy_with_preview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ cfg = (; github_repository, github_event_name, github_ref)

io = stdout


# Here we know that the site builds to `docs/`,
# but you could customize this directory in the future.
target_dir = abspath("./docs") # builddir
upstream = "https://github.com/geocompx/geocompjl.git"
branch = "gh-pages"
devbranch = "main"



if cfg.github_event_name == "pull_request"
build_type = :preview
elseif occursin(r"^refs\/tags\/(.*)$", cfg.github_ref)
Expand Down Expand Up @@ -66,14 +76,6 @@ if !all_ok
exit(0)
end

# Here we know that the site builds to `docs/`,
# but you could customize this directory in the future.
target_dir = abspath("./docs") # builddir
upstream = "https://github.com/geocompx/geocompjl.git"
branch = "gh-pages"
devbranch = "main"


sha = cd(dirname(@__DIR__)) do
# Find the commit sha.
# We'll make sure we run the git commands in the source directory (root), in case
Expand Down

0 comments on commit 91f9bb9

Please sign in to comment.