🐛 Create dist package contents at root directory

This commit is contained in:
Marty Oehme 2023-04-12 11:22:00 +02:00
parent 07de35e92f
commit 6b39e5e05a
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -4,7 +4,8 @@ pipeline:
commands: commands:
- /opt/bats/bin/bats test - /opt/bats/bin/bats test
release-prep: # prepare changelog and version information for release candidate release-prep:
# prepare changelog and version information for release candidate
when: when:
event: tag event: tag
tag: v* tag: v*
@ -13,7 +14,8 @@ pipeline:
- sed -ne 's/bm_version=\(.*\)/\1/p' bemoji > NEWEST_VERSION.txt - sed -ne 's/bm_version=\(.*\)/\1/p' bemoji > NEWEST_VERSION.txt
- awk '/^## \[\d/{p++} p==2{print; exit} p>=1' CHANGELOG.md | head -n -1 | tail -n+3 > NEWEST_CHANGES.txt - awk '/^## \[\d/{p++} p==2{print; exit} p>=1' CHANGELOG.md | head -n -1 | tail -n+3 > NEWEST_CHANGES.txt
versioncompare: # ensure we correctly bumped versions versioncompare:
# ensure we correctly bumped versions
when: when:
event: tag event: tag
tag: v* tag: v*
@ -42,9 +44,10 @@ pipeline:
- cp bemoji build - cp bemoji build
- md2man -in README.md -out bemoji.1 && gzip bemoji.1 - md2man -in README.md -out bemoji.1 && gzip bemoji.1
- cp LICENSE README.md bemoji.1.gz build/doc - cp LICENSE README.md bemoji.1.gz build/doc
- tar -czvf bemoji-$BM_VERSION.tar.gz build/* - cd build || exit 1
- zip -r bemoji-$BM_VERSION.zip build/* - tar -czvf bemoji-$BM_VERSION.tar.gz *
- mv bemoji-$BM_VERSION.tar.gz bemoji-$BM_VERSION.zip dist - zip -r bemoji-$BM_VERSION.zip *
- mv bemoji-$BM_VERSION.tar.gz bemoji-$BM_VERSION.zip ../dist
release-gitea: release-gitea:
group: release group: release