upload after creating tag to prevent duplicating versions
Graham Knop [Thu, 30 May 2013 19:22:37 +0000 (15:22 -0400)]
lib/Distar.pm

index 3fddf69..34e1e31 100644 (file)
@@ -92,9 +92,9 @@ release: preflight
        $(MAKE) disttest
        rm -rf $(DISTVNAME)
        $(MAKE) $(DISTVNAME).tar$(SUFFIX)
-       cpan-upload $(DISTVNAME).tar$(SUFFIX)
        git commit -a -m "Release commit for $(VERSION)"
        git tag v$(VERSION) -m "release v$(VERSION)"
+       cpan-upload $(DISTVNAME).tar$(SUFFIX)
        git push --tags origin
        git push origin HEAD
 distdir: readmefile