Skip to content

Commit 8ea2277

Browse files
committed
Downgrade minimum Go version to 1.18, fixes GitHub actions
1 parent f287325 commit 8ea2277

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ release:
4949
fi; \
5050
rm -rf dist/$$t; \
5151
done
52+
./publish.sh
5253

5354
clean:
5455
echo "Cleaning dist/"

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/tdewolff/minify/v2
22

3-
go 1.23.0
3+
go 1.18.0
44

55
toolchain go1.24.1
66

@@ -17,6 +17,6 @@ require (
1717
github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 // indirect
1818
github.com/jmoiron/sqlx v1.4.0 // indirect
1919
github.com/pelletier/go-toml v1.9.5 // indirect
20-
golang.org/x/sys v0.31.0 // indirect
20+
golang.org/x/sys v0.30.0 // indirect
2121
gopkg.in/yaml.v3 v3.0.1 // indirect
2222
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ github.com/tdewolff/parse/v2 v2.7.21/go.mod h1:I7TXO37t3aSG9SlPUBefAhgIF8nt7yYUw
3030
github.com/tdewolff/test v1.0.6/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE=
3131
github.com/tdewolff/test v1.0.11 h1:FdLbwQVHxqG16SlkGveC0JVyrJN62COWTRyUFzfbtBE=
3232
github.com/tdewolff/test v1.0.11/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8=
33-
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
34-
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
33+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
34+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
3535
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
3636
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
3737
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

publish.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/sh
2+
3+
VERSION=`git describe --tags --abbrev=0 | cut -c 2-`
4+
5+
cd dist
6+
echo ""
7+
echo "Downloading v$VERSION.tar.gz..."
8+
wget -q --show-progress https://github.com/tdewolff/minify/archive/v$VERSION.tar.gz
9+
SHA256=`sha256sum v$VERSION.tar.gz`
10+
SHA256=( $SHA256 )
11+
12+
echo ""
13+
echo "Releasing for AUR..."
14+
cd /home/taco/dev/aur/minify
15+
sed -i "s/^pkgver=.*$/pkgver=$VERSION/" PKGBUILD
16+
sed -i "s/^sha256sums=.*$/sha256sums=('$SHA256')/" PKGBUILD
17+
./build.sh
18+
git commit -am "Update to v$VERSION"
19+
git push
20+
cd -
21+
22+
echo ""
23+
echo "Releasing for Homebrew..."
24+
cd /home/taco/dev/brew/homebrew-tap/Formula
25+
sed -i "s,^ url \".*\"$, url \"https://github.com/tdewolff/minify/archive/v$VERSION.tar.gz\"," minify.rb
26+
sed -i "s/^ sha256 \".*\"$/ sha256 \"$SHA256\"/" minify.rb
27+
git commit -am "Update to v$VERSION"
28+
git push
29+
cd -
30+
31+
#echo ""
32+
#echo "Releasing Python bindings..."
33+
#cd ../bindings/py
34+
#make publish
35+
#cd -

0 commit comments

Comments
 (0)