From e2f9ca66b6ad0709f94fc0f5e0fd2618757ad769 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Mon, 26 May 2025 21:35:12 +0200 Subject: [PATCH] ci: upload artifact on s3 --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4cf8e456..1d06eb4d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,11 @@ name: nightly build +env: + AWS_ACCESS_KEY_ID: ${{ vars.NIGHTLY_BUILD_AWS_ACCESS_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.NIGHTLY_BUILD_AWS_SECRET_ACCESS_KEY }} + AWS_BUCKET: ${{ vars.NIGHTLY_BUILD_AWS_BUCKET }} + AWS_REGION: ${{ vars.NIGHTLY_BUILD_AWS_REGION }} + on: schedule: - cron: "2 2 * * *" @@ -37,6 +43,11 @@ jobs: - name: Rename binary run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} + - name: upload on s3 + run: | + export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'` + aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }} + - name: Upload the build uses: ncipollo/release-action@v1 with: @@ -70,6 +81,11 @@ jobs: - name: Rename binary run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} + - name: upload on s3 + run: | + export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'` + aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }} + - name: Upload the build uses: ncipollo/release-action@v1 with: @@ -103,6 +119,11 @@ jobs: - name: Rename binary run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} + - name: upload on s3 + run: | + export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'` + aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }} + - name: Upload the build uses: ncipollo/release-action@v1 with: @@ -136,6 +157,11 @@ jobs: - name: Rename binary run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} + - name: upload on s3 + run: | + export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'` + aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }} + - name: Upload the build uses: ncipollo/release-action@v1 with: