Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stack
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Commercial Haskell
stack
Commits
d65749d2
Commit
d65749d2
authored
5 years ago
by
Emanuel Borsboom
Browse files
Options
Downloads
Patches
Plain Diff
release.hs: upload raw binary with '.bin' extension
parent
87fec279
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
etc/scripts/release.hs
+5
-2
5 additions, 2 deletions
etc/scripts/release.hs
with
5 additions
and
2 deletions
etc/scripts/release.hs
+
5
−
2
View file @
d65749d2
...
...
@@ -339,7 +339,7 @@ rules global@Global{..} args = do
_
->
[
binaryExeFileName
,
binaryPkgTarGzFileName
]
binaryPkgZipFileName
=
binaryName
<.>
zipExt
binaryPkgTarGzFileName
=
binaryName
<.>
tarGzExt
binaryExeFileName
=
binaryName
<.>
exe
binaryExeFileName
=
binaryName
<.>
binaryExt
binaryName
=
concat
[
stackProgName
...
...
@@ -359,12 +359,15 @@ rules global@Global{..} args = do
ascExt
=
".asc"
sha256Ext
=
".sha256"
uploadExt
=
".upload"
binaryExt
=
case
platformOS
of
Windows
->
".exe"
_
->
".bin"
-- | Upload file to Github release.
uploadToGithubRelease
::
Global
->
FilePath
->
Maybe
String
->
Action
()
uploadToGithubRelease
global
@
Global
{
..
}
file
mUploadLabel
=
do
-- TODO: consider using https://github.com/tfausak/github-release
need
[
file
]
putNormal
$
"Uploading to Github: "
++
file
GithubRelease
{
..
}
<-
getGithubRelease
resp
<-
liftIO
$
callGithubApi
global
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment