mockband/.gitea/publish.sh

30 lines
531 B
Bash
Raw Normal View History

2024-01-04 21:36:17 -07:00
#! /bin/sh
set -e
PACKAGE=${GITHUB_REPOSITORY#*/}
VERSION=$GITHUB_REF_NAME
BASE=$GITHUB_SERVER_URL/api/packages/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION
Squashed commit of the following: commit 13825855d3baeb456fa9577b224625d0c0e2f3b3 Author: Neale Pickett <neale@woozle.org> Date: Sat Jan 6 15:08:12 2024 -0700 twiddling things trying to get drums working on CH commit e54595e6302f793811fbf9819f8580f2a9cf761f Merge: 63bd067 703b070 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 18:18:18 2024 -0700 Merge branch 'main' into builder commit 63bd0672500631b8c47f24f041693e642ab32533 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:29:16 2024 -0700 More idiomatic (to me) Makefile commit 9f0c0711a85ca1ce9c2b5a285c779148a63acb55 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:10:28 2024 -0700 fancypants flash target commit efc67e9fe551475b4beb0757606dacb494cb92df Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:06:59 2024 -0700 Also publish zip file commit ce7d6107cf79553c1a7d325132f9a9ca30b2d478 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:04:51 2024 -0700 stop using removed `make publish` commit 48d245051454bc353f963cddbbb85359986ab3b3 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:02:53 2024 -0700 make dist commit 5f448321518a8a950330cab88277318455e5da32 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 08:50:10 2024 -0700 move to Makefile commit da45584955a4a5ae13e7aebcac4570c95a312243 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 08:37:03 2024 -0700 Makefile commit 50ce7c245ac89336ea340ccb3152239176ee9c13 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 23:16:08 2024 -0700 Fix quoting commit f767eb6e23f6153f0f09e02b9e3d984a79a9b949 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 23:15:05 2024 -0700 Build log formatting commit 7495bfd20fe5676c00becf80109792a0447fa664 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 23:12:51 2024 -0700 Try preserving package versions commit 5fa607d6b093cfafbf4b9b52e4686acd3e3625f6 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:59:14 2024 -0700 build and code cleanup commit 855ad3ba60c9a527dbf4fb40958f680a0993a5a6 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:48:20 2024 -0700 fix: change quoting? commit 25a917dc81313d1ff9f144d8029a5c70fc4132ae Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:42:11 2024 -0700 directly specify gcc flags commit a8d4918e05327049232a994cd7ba607cc778c2f2 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:23:03 2024 -0700 variables expand again commit 544ffa8ced48c6bee445bd6ec73e48662168e3e9 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:21:25 2024 -0700 quote stuff commit a3d8262e017c352e4bf1120fc7b30e05775260e1 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:19:58 2024 -0700 fix build on non-default branch commit 0ba9c0957a44cc1d01b51263607f366cc81fd323 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:16:36 2024 -0700 Clever vid/pid settings?
2024-01-06 15:13:19 -07:00
curl \
--user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \
--request DELETE \
$BASE
2024-01-04 21:36:17 -07:00
for path in "$@"; do
fn=$(basename "$path")
echo "=== Upload $VERSION/$fn"
Squashed commit of the following: commit 13825855d3baeb456fa9577b224625d0c0e2f3b3 Author: Neale Pickett <neale@woozle.org> Date: Sat Jan 6 15:08:12 2024 -0700 twiddling things trying to get drums working on CH commit e54595e6302f793811fbf9819f8580f2a9cf761f Merge: 63bd067 703b070 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 18:18:18 2024 -0700 Merge branch 'main' into builder commit 63bd0672500631b8c47f24f041693e642ab32533 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:29:16 2024 -0700 More idiomatic (to me) Makefile commit 9f0c0711a85ca1ce9c2b5a285c779148a63acb55 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:10:28 2024 -0700 fancypants flash target commit efc67e9fe551475b4beb0757606dacb494cb92df Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:06:59 2024 -0700 Also publish zip file commit ce7d6107cf79553c1a7d325132f9a9ca30b2d478 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:04:51 2024 -0700 stop using removed `make publish` commit 48d245051454bc353f963cddbbb85359986ab3b3 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 09:02:53 2024 -0700 make dist commit 5f448321518a8a950330cab88277318455e5da32 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 08:50:10 2024 -0700 move to Makefile commit da45584955a4a5ae13e7aebcac4570c95a312243 Author: Neale Pickett <neale@woozle.org> Date: Fri Jan 5 08:37:03 2024 -0700 Makefile commit 50ce7c245ac89336ea340ccb3152239176ee9c13 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 23:16:08 2024 -0700 Fix quoting commit f767eb6e23f6153f0f09e02b9e3d984a79a9b949 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 23:15:05 2024 -0700 Build log formatting commit 7495bfd20fe5676c00becf80109792a0447fa664 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 23:12:51 2024 -0700 Try preserving package versions commit 5fa607d6b093cfafbf4b9b52e4686acd3e3625f6 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:59:14 2024 -0700 build and code cleanup commit 855ad3ba60c9a527dbf4fb40958f680a0993a5a6 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:48:20 2024 -0700 fix: change quoting? commit 25a917dc81313d1ff9f144d8029a5c70fc4132ae Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:42:11 2024 -0700 directly specify gcc flags commit a8d4918e05327049232a994cd7ba607cc778c2f2 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:23:03 2024 -0700 variables expand again commit 544ffa8ced48c6bee445bd6ec73e48662168e3e9 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:21:25 2024 -0700 quote stuff commit a3d8262e017c352e4bf1120fc7b30e05775260e1 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:19:58 2024 -0700 fix build on non-default branch commit 0ba9c0957a44cc1d01b51263607f366cc81fd323 Author: Neale Pickett <neale@woozle.org> Date: Thu Jan 4 22:16:36 2024 -0700 Clever vid/pid settings?
2024-01-06 15:13:19 -07:00
2024-01-04 23:19:10 -07:00
curl \
--user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \
--request DELETE \
$BASE/$fn
2024-01-04 21:36:17 -07:00
curl \
--fail \
--user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \
--upload-file "$path" \
$BASE/$fn
done