|
63 | 63 | repo: cargo-lambda/cargo-lambda
|
64 | 64 | platform: linux # Other valid options: 'windows' or 'darwin'
|
65 | 65 | arch: x86_64 # Other valid options for linux: 'aarch64'
|
66 |
| - - name: Install cross |
67 |
| - run: cargo install cross |
68 | 66 | - name: Build release
|
69 |
| - run: cargo lambda build --compiler cross --release --output-format zip |
| 67 | + run: ./ci/build-release.sh |
70 | 68 |
|
71 | 69 | - name: release
|
72 | 70 | uses: actions/create-release@v1
|
|
79 | 77 | env:
|
80 | 78 | GITHUB_TOKEN: ${{ github.token }}
|
81 | 79 |
|
82 |
| - - name: Upload oxbow lambda |
83 |
| - uses: actions/upload-release-asset@v1 |
84 |
| - env: |
85 |
| - GITHUB_TOKEN: ${{ github.token }} |
86 |
| - with: |
87 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
88 |
| - asset_path: ./target/lambda/oxbow-lambda/bootstrap.zip |
89 |
| - asset_name: oxbow-lambda-bootstrap-${{ github.ref_name }}.zip |
90 |
| - asset_content_type: application/zip |
91 |
| - |
92 |
| - - name: Upload group-events lambda |
93 |
| - uses: actions/upload-release-asset@v1 |
94 |
| - env: |
95 |
| - GITHUB_TOKEN: ${{ github.token }} |
96 |
| - with: |
97 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
98 |
| - asset_path: ./target/lambda/group-events/bootstrap.zip |
99 |
| - asset_name: group-events-lambda-bootstrap-${{ github.ref_name }}.zip |
100 |
| - asset_content_type: application/zip |
101 |
| - |
102 |
| - - name: Upload auto-tag lambda |
103 |
| - uses: actions/upload-release-asset@v1 |
104 |
| - env: |
105 |
| - GITHUB_TOKEN: ${{ github.token }} |
106 |
| - with: |
107 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
108 |
| - asset_path: ./target/lambda/auto-tag/bootstrap.zip |
109 |
| - asset_name: auto-tag-lambda-bootstrap-${{ github.ref_name }}.zip |
110 |
| - asset_content_type: application/zip |
111 |
| - |
112 |
| - - name: Upload webhook lambda |
113 |
| - uses: actions/upload-release-asset@v1 |
114 |
| - env: |
115 |
| - GITHUB_TOKEN: ${{ github.token }} |
116 |
| - with: |
117 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
118 |
| - asset_path: ./target/lambda/webhook/bootstrap.zip |
119 |
| - asset_name: webhook-lambda-bootstrap-${{ github.ref_name }}.zip |
120 |
| - asset_content_type: application/zip |
121 |
| - |
122 |
| - - name: Upload sqs-ingest lambda |
123 |
| - uses: actions/upload-release-asset@v1 |
124 |
| - env: |
125 |
| - GITHUB_TOKEN: ${{ github.token }} |
126 |
| - with: |
127 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
128 |
| - asset_path: ./target/lambda/sqs-ingest/bootstrap.zip |
129 |
| - asset_name: sqs-ingest-lambda-bootstrap-${{ github.ref_name }}.zip |
130 |
| - asset_content_type: application/zip |
131 |
| - |
132 |
| - - name: Upload glue-create lambda |
133 |
| - uses: actions/upload-release-asset@v1 |
134 |
| - env: |
135 |
| - GITHUB_TOKEN: ${{ github.token }} |
136 |
| - with: |
137 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
138 |
| - asset_path: ./target/lambda/glue-create/bootstrap.zip |
139 |
| - asset_name: glue-create-lambda-bootstrap-${{ github.ref_name }}.zip |
140 |
| - asset_content_type: application/zip |
141 |
| - |
142 |
| - - name: Upload glue-sync lambda |
143 |
| - uses: actions/upload-release-asset@v1 |
144 |
| - env: |
145 |
| - GITHUB_TOKEN: ${{ github.token }} |
146 |
| - with: |
147 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
148 |
| - asset_path: ./target/lambda/glue-sync/bootstrap.zip |
149 |
| - asset_name: glue-sync-lambda-bootstrap-${{ github.ref_name }}.zip |
150 |
| - asset_content_type: application/zip |
151 |
| - |
152 |
| - - name: Upload file-loader lambda |
153 |
| - uses: actions/upload-release-asset@v1 |
154 |
| - env: |
155 |
| - GITHUB_TOKEN: ${{ github.token }} |
| 80 | + - name: Upload assets |
| 81 | + uses: softprops/action-gh-release@v2 |
156 | 82 | with:
|
157 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
158 |
| - asset_path: ./target/lambda/file-loader/bootstrap.zip |
159 |
| - asset_name: file-loader-lambda-bootstrap-${{ github.ref_name }}.zip |
160 |
| - asset_content_type: application/zip |
| 83 | + files: ./target/lambda/**/*.zip |
0 commit comments