File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ require Logger
2+
13version = Regex . run ( ~r/ version: "(.*)"/ , File . read! ( "mix.exs" ) , capture: :all_but_first ) |> List . first ( )
2- IO . puts ( "version #{ version } " )
4+ Logger . info ( "version #{ version } " )
35
46File . cd! ( "burrito_out" )
57
68for file <- File . ls! ( ) do
79 destination = String . replace ( file , "_" , "-" )
8- IO . puts ( "mv #{ file } #{ destination } " )
10+ Logger . info ( "mv #{ file } #{ destination } " )
911 File . rename! ( file , destination )
1012end
1113
14+ Logger . info ( "creating aws-sso-config-generator-checksums.txt" )
1215{ "" , 0 } = System . shell ( "shasum -a 256 * > aws-sso-config-generator-checksums.txt" )
1316
1417File . cd! ( ".." )
1518
1619if System . get_env ( "CI" ) do
1720 if String . ends_with? ( version , "-dev" ) do
21+ Logger . info ( "creating github prerelease" )
1822 System . shell ( "gh release create #{ version } --generate-notes -p" )
1923 else
24+ Logger . info ( "creating github release" )
2025 System . shell ( "gh release create #{ version } --generate-notes" )
2126 end
2227
28+ Logger . info ( "uploading artifacts" )
2329 System . shell ( "gh release upload #{ version } ./burrito_out/* -R djgoku/aws-sso-config-generator" )
2430end
You can’t perform that action at this time.
0 commit comments