Skip to content

Commit 0f885cc

Browse files
committed
correction work
1 parent 2139fb2 commit 0f885cc

File tree

2 files changed

+13
-28
lines changed

2 files changed

+13
-28
lines changed

.github/workflows/build-on-release.yml

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ jobs:
88
build:
99
name: Build static releases
1010
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-
1411
steps:
1512
- name: Checkout repository
1613
uses: actions/checkout@v4
@@ -32,30 +29,16 @@ jobs:
3229
run: |
3330
sudo apt-get install -y libvips libvips-dev
3431
35-
36-
- name: Build static releases
32+
- name: Build static release
3733
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=.
4135
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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Static Releases](https://github.com/quix-labs/caddy-image-processor/actions/workflows/build-on-release.yml/badge.svg)](https://github.com/quix-labs/caddy-image-processor/actions/workflows/build-on-release.yml)
2+
13
# Caddy Image Processor
24

35
This repository contains a CaddyServer module for processing images on the fly using libvips.

0 commit comments

Comments
 (0)