8
8
build :
9
9
name : Build static releases
10
10
runs-on : ubuntu-latest
11
- env :
12
- CADDY_VERSIONS : " v2.1.0,v2.2.3,v2.3.0,v2.4.6,v2.5.2,v2.6.4,v2.7.6,latest"
13
-
14
11
steps :
15
12
- name : Checkout repository
16
13
uses : actions/checkout@v4
@@ -32,30 +29,16 @@ jobs:
32
29
run : |
33
30
sudo apt-get install -y libvips libvips-dev
34
31
35
-
36
- - name : Build static releases
32
+ - name : Build static release
37
33
run : |
38
- for version in $(echo $CADDY_VERSIONS | tr ',' ' '); do
39
- CGO_ENABLED=1 xcaddy build ${version} --output caddy-${version} --with github.com/quix-labs/caddy-image-processor=.
40
- done
34
+ CGO_ENABLED=1 xcaddy build --output caddy-image-processor --with github.com/quix-labs/caddy-image-processor=.
41
35
42
- - name : Upload Release Assets
43
- run : |
44
- for version in $(echo $CADDY_VERSIONS | tr ',' ' '); do
45
- echo "Uploading caddy-${version}..."
46
- curl \
47
- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
48
- -H "Content-Type: application/octet-stream" \
49
- --data-binary @caddy-${version} \
50
- -X POST "${{ github.event.release.upload_url }}/assets?name=caddy-${version}"
51
- done
52
- #
53
- # - name: Upload Release Asset (${{ matrix.os }}/${{ matrix.arch }})
54
- # uses: actions/upload-release-asset@v1
55
- # env:
56
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57
- # with:
58
- # upload_url: ${{ github.event.release.upload_url }}
59
- # asset_path: ./caddy-${{ matrix.os }}-${{ matrix.arch }}
60
- # asset_name: caddy-${{ matrix.os }}-${{ matrix.arch }}
61
- # asset_content_type: application/octet-stream
36
+ - name : Upload Release Asset
37
+ uses : actions/upload-release-asset@v1
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ with :
41
+ upload_url : ${{ github.event.release.upload_url }}
42
+ asset_path : ./caddy-image-processor
43
+ asset_name : caddy-image-processor-linux-amd64
44
+ asset_content_type : application/octet-stream
0 commit comments