Skip to content

Commit e2f9ca6

Browse files
committed
ci: upload artifact on s3
1 parent 1a72bf5 commit e2f9ca6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: nightly build
22

3+
env:
4+
AWS_ACCESS_KEY_ID: ${{ vars.NIGHTLY_BUILD_AWS_ACCESS_ID }}
5+
AWS_SECRET_ACCESS_KEY: ${{ secrets.NIGHTLY_BUILD_AWS_SECRET_ACCESS_KEY }}
6+
AWS_BUCKET: ${{ vars.NIGHTLY_BUILD_AWS_BUCKET }}
7+
AWS_REGION: ${{ vars.NIGHTLY_BUILD_AWS_REGION }}
8+
39
on:
410
schedule:
511
- cron: "2 2 * * *"
@@ -37,6 +43,11 @@ jobs:
3743
- name: Rename binary
3844
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
3945

46+
- name: upload on s3
47+
run: |
48+
export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
49+
aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
50+
4051
- name: Upload the build
4152
uses: ncipollo/release-action@v1
4253
with:
@@ -70,6 +81,11 @@ jobs:
7081
- name: Rename binary
7182
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
7283

84+
- name: upload on s3
85+
run: |
86+
export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
87+
aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
88+
7389
- name: Upload the build
7490
uses: ncipollo/release-action@v1
7591
with:
@@ -103,6 +119,11 @@ jobs:
103119
- name: Rename binary
104120
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
105121

122+
- name: upload on s3
123+
run: |
124+
export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
125+
aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
126+
106127
- name: Upload the build
107128
uses: ncipollo/release-action@v1
108129
with:
@@ -136,6 +157,11 @@ jobs:
136157
- name: Rename binary
137158
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
138159

160+
- name: upload on s3
161+
run: |
162+
export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
163+
aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
164+
139165
- name: Upload the build
140166
uses: ncipollo/release-action@v1
141167
with:

0 commit comments

Comments
 (0)