Skip to content

Instantly share code, notes, and snippets.

@jaredcwhite
Last active May 22, 2020 08:20
Show Gist options
  • Save jaredcwhite/963d40acab5f21b42152536ad6847575 to your computer and use it in GitHub Desktop.
Save jaredcwhite/963d40acab5f21b42152536ad6847575 to your computer and use it in GitHub Desktop.
Testing out running a remote Thor actions script
say "I am a script from GitHub!"
empty_directory "gh_dir"
create_file "gh_dir/fun_party.rb" do
hostname = ask("What is the virtual hostname I should use?")
"vhost.name = #{hostname}"
end
create_file "netlify.toml" do
<<~NETLIFY
[build]
command = "yarn deploy"
publish = "output"
[build.environment]
NODE_VERSION = "12"
[context.production.environment]
BRIDGETOWN_ENV = "production"
NETLIFY
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment