Skip to content

Commit

Permalink
Adding conditional keychain creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Jan 8, 2024
1 parent 09ef08c commit 73485cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/mix/tasks/create_keychain.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ defmodule Mix.Tasks.Desktop.CreateKeychain do
@moduledoc false

@shortdoc "Creates a new keychain."
def run(["maybe"]) do
pem = String.trim(System.get_env("MACOS_PEM") || "")
if byte_size(pem) == 0 do
Mix.Shell.IO.info("No MACOS_PEM env var defined, skipping")
else
run([])
end
end

def run(_args) do
name = "macos-build.keychain"
pass = "actions"
Expand Down

0 comments on commit 73485cf

Please sign in to comment.