diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Add a dist target and build releases through it
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml10
1 file changed, 2 insertions, 8 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 12226f9..994e8eb 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -31,14 +31,8 @@ jobs:
package() { # $1 = release-build.sh arg, $2 = tarball suffix
./tools/release-build.sh $1
dist="cgit-${GITHUB_REF_NAME}${2}"
- mkdir -p "$dist"
- cp build/cgit "$dist/cgit.cgi"
- cp assets/cgit.css assets/cgit.js assets/cgit.png assets/favicon.ico assets/robots.txt "$dist/"
- cp cgitrc.5.txt README.txt LICENSE.txt AUTHORS "$dist/"
- # Ship the filter scripts and the example configs, hooks and
- # server setups that the docs and cgitrc reference.
- cp -r extensions examples "$dist/"
- tar czf "${dist}.tar.gz" "$dist"
+ make dist DIST_NAME="$dist"
+ mv "build/${dist}.tar.gz" .
sha256sum "${dist}.tar.gz" > "${dist}.tar.gz.sha256"
}
package "" ""