0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-24 03:50:40 +00:00

Merge pull request #25 from drone-plugins/feature/version

Set a proper version number
This commit is contained in:
Thomas Boerger 2016-08-23 23:07:39 +02:00 committed by GitHub
commit c228e60169

View File

@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
"github.com/Sirupsen/logrus"
@ -8,14 +9,14 @@ import (
"github.com/urfave/cli"
)
var version string // build number set at compile-time
var build = "0" // build number set at compile-time
func main() {
app := cli.NewApp()
app.Name = "s3 sync plugin"
app.Usage = "s3 sync plugin"
app.Action = run
app.Version = version
app.Version = fmt.Sprintf("1.0.%s", build)
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "access-key",