Skip to content

Commit 4cd48b9

Browse files
committed
ci: replace artifact upload with GitHub Release upload
Artifact storage limit (500MB) is too small for 39 packages (~40MB each). Switch to gh release upload to a <branch>-head draft prerelease, matching the existing ci-package-build.yml pattern. Create the release if it doesn't exist, then upload with --clobber. Update permissions from contents:read to contents:write for release uploads.
1 parent 5cfeb2e commit 4cd48b9

39 files changed

Lines changed: 312 additions & 312 deletions

.github/workflows/CI-package-arm64-almalinux10-genai.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: almalinux10
2121
MATRIX: '(arm64,almalinux10-genai)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
PROXYSQLGENAI=1 make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-almalinux10-genai
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

.github/workflows/CI-package-arm64-almalinux10-v31.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: almalinux10
2121
MATRIX: '(arm64,almalinux10-v31)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
PROXYSQL31=1 make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-almalinux10-v31
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

.github/workflows/CI-package-arm64-almalinux10.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: almalinux10
2121
MATRIX: '(arm64,almalinux10)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-almalinux10
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

.github/workflows/CI-package-arm64-almalinux8-genai.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: almalinux8
2121
MATRIX: '(arm64,almalinux8-genai)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
PROXYSQLGENAI=1 make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-almalinux8-genai
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

.github/workflows/CI-package-arm64-almalinux8-v31.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: almalinux8
2121
MATRIX: '(arm64,almalinux8-v31)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
PROXYSQL31=1 make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-almalinux8-v31
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

.github/workflows/CI-package-arm64-almalinux8.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: almalinux8
2121
MATRIX: '(arm64,almalinux8)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-almalinux8
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

.github/workflows/CI-package-arm64-almalinux9-genai.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: almalinux9
2121
MATRIX: '(arm64,almalinux9-genai)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
PROXYSQLGENAI=1 make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-almalinux9-genai
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

.github/workflows/CI-package-arm64-almalinux9-v31.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: almalinux9
2121
MATRIX: '(arm64,almalinux9-v31)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
PROXYSQL31=1 make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-almalinux9-v31
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

.github/workflows/CI-package-arm64-almalinux9.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: almalinux9
2121
MATRIX: '(arm64,almalinux9)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-almalinux9
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

.github/workflows/CI-package-arm64-centos10-genai.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: read
8+
contents: write
99
checks: write
1010

1111
concurrency:
@@ -19,6 +19,7 @@ jobs:
1919
ARCH: arm64
2020
DIST: centos10
2121
MATRIX: '(arm64,centos10-genai)'
22+
BRANCH: ${{ github.ref_name }}
2223

2324
steps:
2425
- uses: LouisBrunner/checks-action@v2.0.0
@@ -43,13 +44,12 @@ jobs:
4344
run: |
4445
PROXYSQLGENAI=1 make ${{ env.DIST }}
4546
46-
- name: Upload package artifact
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: proxysql-arm64-centos10-genai
50-
path: binaries/
51-
retention-days: 90
52-
if-no-files-found: error
47+
- name: Upload to release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
gh release create ${{ env.BRANCH }}-head --repo ${{ github.repository }} --title "${{ env.BRANCH }}-head" --target ${{ github.sha }} --draft --prerelease 2>/dev/null || true
52+
gh release upload ${{ env.BRANCH }}-head --repo ${{ github.repository }} --clobber binaries/*.[mb] binaries/*.id-hash 2>/dev/null || true
5353
5454
- uses: LouisBrunner/checks-action@v2.0.0
5555
if: always()

0 commit comments

Comments
 (0)