Move/adapt archive and release script to repo root
This commit is contained in:
parent
d9cb372c5c
commit
4f00ff228d
3 changed files with 17 additions and 3 deletions
14
README.md
14
README.md
|
|
@ -12,13 +12,27 @@ BuffyBox is a suite of graphical applications for the terminal.
|
||||||
|
|
||||||
You can join our development chat at [#buffybox:matrix.org].
|
You can join our development chat at [#buffybox:matrix.org].
|
||||||
|
|
||||||
|
## Making a release
|
||||||
|
|
||||||
|
To make it easier for distributions to package BuffyBox, we include source tarballs including the LVGL submodule in GitLab releases. See [unl0kr#42] for more background on this.
|
||||||
|
|
||||||
|
Producing and uploading a source tarball requires [git-archive-all] to be installed as well as an access token for the GitLab API. To tag a release and upload a source tarball, run
|
||||||
|
|
||||||
|
```
|
||||||
|
./release.sh $VERSION $TOKEN
|
||||||
|
```
|
||||||
|
|
||||||
|
Once the upload completes, create a new release on GitLab and attach the URL of the uploaded source tarball.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
This project is licensed under the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
[#buffybox:matrix.org]: https://matrix.to/#/#buffybox:matrix.org
|
[#buffybox:matrix.org]: https://matrix.to/#/#buffybox:matrix.org
|
||||||
[buffyboard]: ./buffyboard
|
[buffyboard]: ./buffyboard
|
||||||
|
[git-archive-all]: https://github.com/Kentzo/git-archive-all
|
||||||
[LVGL]: https://github.com/lvgl/lvgl
|
[LVGL]: https://github.com/lvgl/lvgl
|
||||||
[squeek2lvgl]: ./squeek2lvgl
|
[squeek2lvgl]: ./squeek2lvgl
|
||||||
[Squeekboard]: https://gitlab.gnome.org/World/Phosh/squeekboard
|
[Squeekboard]: https://gitlab.gnome.org/World/Phosh/squeekboard
|
||||||
[unl0kr]: ./unl0kr
|
[unl0kr]: ./unl0kr
|
||||||
|
[unl0kr#42]: https://gitlab.com/cherrypicker/unl0kr/-/issues/42
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
version=$(git describe --exact-match --tags HEAD || git rev-parse HEAD)
|
version=$(git describe --exact-match --tags HEAD || git rev-parse HEAD)
|
||||||
archive=unl0kr-${version}.tar.gz
|
archive=buffybox-${version}.tar.gz
|
||||||
|
|
||||||
echo "Archiving repository with submodules..."
|
echo "Archiving repository with submodules..."
|
||||||
git-archive-all ${archive}
|
git-archive-all ${archive}
|
||||||
|
|
@ -10,7 +10,7 @@ echo "Uploading archive to GitLab..."
|
||||||
response=$(curl --request POST \
|
response=$(curl --request POST \
|
||||||
--header "PRIVATE-TOKEN: $1" \
|
--header "PRIVATE-TOKEN: $1" \
|
||||||
--form "file=@${archive}" \
|
--form "file=@${archive}" \
|
||||||
"https://gitlab.com/api/v4/projects/29322771/uploads")
|
"https://gitlab.com/api/v4/projects/52322952/uploads")
|
||||||
|
|
||||||
path=$(echo "${response}" | jq -r .full_path)
|
path=$(echo "${response}" | jq -r .full_path)
|
||||||
|
|
||||||
|
|
@ -25,4 +25,4 @@ git push --tags
|
||||||
|
|
||||||
./archive.sh "$2"
|
./archive.sh "$2"
|
||||||
|
|
||||||
echo "Now create a release for https://gitlab.com/cherrypicker/unl0kr/-/tags/$1 and attach the uploaded archive"
|
echo "Now create a release for https://gitlab.com/postmarketOS/buffybox/-/tags/$1 and attach the uploaded archive"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue