|
1 | 1 | name: nightly build |
2 | 2 |
|
| 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 | + |
3 | 9 | on: |
4 | 10 | schedule: |
5 | 11 | - cron: "2 2 * * *" |
|
37 | 43 | - name: Rename binary |
38 | 44 | run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} |
39 | 45 |
|
| 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 | +
|
40 | 51 | - name: Upload the build |
41 | 52 | uses: ncipollo/release-action@v1 |
42 | 53 | with: |
|
70 | 81 | - name: Rename binary |
71 | 82 | run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} |
72 | 83 |
|
| 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 | +
|
73 | 89 | - name: Upload the build |
74 | 90 | uses: ncipollo/release-action@v1 |
75 | 91 | with: |
@@ -103,6 +119,11 @@ jobs: |
103 | 119 | - name: Rename binary |
104 | 120 | run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} |
105 | 121 |
|
| 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 | +
|
106 | 127 | - name: Upload the build |
107 | 128 | uses: ncipollo/release-action@v1 |
108 | 129 | with: |
@@ -136,6 +157,11 @@ jobs: |
136 | 157 | - name: Rename binary |
137 | 158 | run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} |
138 | 159 |
|
| 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 | +
|
139 | 165 | - name: Upload the build |
140 | 166 | uses: ncipollo/release-action@v1 |
141 | 167 | with: |
|
0 commit comments