diff options
author | EuAndreh <eu@euandre.org> | 2021-08-17 17:02:43 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-17 17:03:28 -0300 |
commit | 45e2145a719833019bbd95072db98af03647b797 (patch) | |
tree | fe7740c7db05801b463e773b113f8f98a432e3d1 /aux/workflow | |
parent | TODOs.md: Add #task-e99fa50b-75ea-21fb-6b4d-84447646cdea (diff) | |
download | gistatic-45e2145a719833019bbd95072db98af03647b797.tar.gz gistatic-45e2145a719833019bbd95072db98af03647b797.tar.xz |
aux/, tests/lib.sh: Update
Diffstat (limited to 'aux/workflow')
-rwxr-xr-x | aux/workflow/assert-readme.sh | 2 | ||||
-rwxr-xr-x | aux/workflow/dist.sh | 2 | ||||
-rwxr-xr-x | aux/workflow/sign-tarballs.sh | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/aux/workflow/assert-readme.sh b/aux/workflow/assert-readme.sh index 6635832..dbe657e 100755 --- a/aux/workflow/assert-readme.sh +++ b/aux/workflow/assert-readme.sh @@ -64,7 +64,7 @@ RELEASES_LIST="$(mkstemp)" add_release() { DATE="$1" VVERSION="$2" - echo "- [$VVERSION](https://git.euandreh.xyz/$PROJECT/commit/?id=$VVERSION) [$PROJECT-$VVERSION.tar.xz](https://git.euandreh.xyz/$PROJECT/snapshot/$PROJECT-$VVERSION.tar.xz) ([sig](https://git.euandreh.xyz/$PROJECT/snapshot/$PROJECT-$VVERSION.tar.xz.asc)) - $DATE" >> "$RELEASES_LIST" + echo "- [$VVERSION](https://git.euandreh.xyz/$PROJECT/commit/?id=$VVERSION) [$PROJECT-$VVERSION.tar.gz](https://git.euandreh.xyz/$PROJECT/snapshot/$PROJECT-$VVERSION.tar.gz) ([sig](https://git.euandreh.xyz/$PROJECT/snapshot/$PROJECT-$VVERSION.tar.gz.asc)) - $DATE" >> "$RELEASES_LIST" } for VVERSION in $(git tag); do diff --git a/aux/workflow/dist.sh b/aux/workflow/dist.sh index 15593f4..69c0173 100755 --- a/aux/workflow/dist.sh +++ b/aux/workflow/dist.sh @@ -73,7 +73,7 @@ sh aux/workflow/sign-tarballs.sh -n "$PROJECT" cat <<EOF >&2 Now push the tag and the signature before pushing the commit: -git push origin refs/notes/signatures/tar.xz -o skip-ci --no-verify +git push origin refs/notes/signatures/tar.gz -o skip-ci --no-verify git push --tags -o skip-ci --no-verify git push diff --git a/aux/workflow/sign-tarballs.sh b/aux/workflow/sign-tarballs.sh index 295619c..3ab2bb8 100755 --- a/aux/workflow/sign-tarballs.sh +++ b/aux/workflow/sign-tarballs.sh @@ -23,15 +23,15 @@ assert_arg() { assert_arg "${PROJECT:-}" '-n PROJECT' -SIGNATURES="$(git notes --ref=refs/notes/signatures/tar.xz list | cut -d\ -f2)" +SIGNATURES="$(git notes --ref=refs/notes/signatures/tar.gz list | cut -d\ -f2)" for tag in $(git tag); do COMMIT="$(git rev-list -n1 "$tag")" if echo "$SIGNATURES" | grep -qF "$COMMIT"; then continue fi echo "Adding missing signature to $tag" >&2 - git notes --ref=refs/notes/signatures/tar.xz add -C "$( - git archive --format tar.xz --prefix "$PROJECT-$tag/" "$tag" | + git notes --ref=refs/notes/signatures/tar.gz add -C "$( + git archive --format tar.gz --prefix "$PROJECT-$tag/" "$tag" | gpg --output - --armor --detach-sign | git hash-object -w --stdin )" "$tag" |