mirror of
https://github.com/drone-plugins/drone-pypi.git
synced 2026-06-04 10:15:06 +08:00
fix build dependencies; look for dist in nested dir;
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"log"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
@@ -40,7 +41,7 @@ func (p Plugin) uploadCommand() *exec.Cmd {
|
||||
args = append(args, p.Username)
|
||||
args = append(args, "--password")
|
||||
args = append(args, p.Password)
|
||||
args = append(args, "dist/*")
|
||||
args = append(args, filepath.Join(filepath.Dir(p.SetupFile), "dist/*"))
|
||||
|
||||
return exec.Command("twine", args...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user