Skip to content

Commit 113c2d4

Browse files
committed
Fix --exclude; use bsdtar for consistent globbing
1 parent 31c2c97 commit 113c2d4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ steps:
524524
pull: always
525525
image: techknowlogick/xgo:go-1.15.x
526526
commands:
527-
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
527+
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs bsdtar\|libarchive-tools
528528
- export PATH=$PATH:$GOPATH/bin
529529
- make release
530530
environment:
@@ -620,7 +620,7 @@ steps:
620620
pull: always
621621
image: techknowlogick/xgo:go-1.15.x
622622
commands:
623-
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
623+
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs bsdtar\|libarchive-tools
624624
- export PATH=$PATH:$GOPATH/bin
625625
- make release
626626
environment:

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ audit=false
22
fund=false
33
package-lock=true
44
save-exact=true
5+
cache=.npm-cache

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ release-compress: | $(DIST_DIRS)
617617
.PHONY: release-sources
618618
release-sources: | $(DIST_DIRS) npm-cache
619619
echo $(VERSION) > $(STORED_VERSION_FILE)
620-
tar --exclude=./$(DIST) --exclude=./.git --exclude=./$(MAKE_EVIDENCE_DIR) --exclude=./node_modules --exclude=./$(AIR_TMP_DIR) -czf $(DIST)/release/gitea-src-$(VERSION).tar.gz .
620+
bsdtar --exclude=^./$(DIST) --exclude=^./.git --exclude=^./$(MAKE_EVIDENCE_DIR) --exclude=node_modules --exclude=^./$(AIR_TMP_DIR) -czf $(DIST)/release/gitea-src-$(VERSION).tar.gz .
621621
rm -f $(STORED_VERSION_FILE)
622622

623623
.PHONY: release-docs

0 commit comments

Comments
 (0)