|
54 | 54 | with:
|
55 | 55 | credentials_json: ${{ secrets.RELEASES_SERVICE_ACCOUNT_JSON }}
|
56 | 56 |
|
| 57 | + - name: Create GitHub release |
| 58 | + uses: actions/create-release@v1 |
| 59 | + id: create_release |
| 60 | + with: |
| 61 | + draft: false |
| 62 | + prerelease: false |
| 63 | + release_name: v${{ steps.read_version.outputs.content }} |
| 64 | + tag_name: v${{ steps.read_version.outputs.content }} |
| 65 | + body_path: CHANGELOG.md |
| 66 | + env: |
| 67 | + GITHUB_TOKEN: ${{ github.token }} |
| 68 | + |
| 69 | + - name: Upload distribution binary file |
| 70 | + uses: actions/upload-release-asset@v1 |
| 71 | + env: |
| 72 | + GITHUB_TOKEN: ${{ github.token }} |
| 73 | + with: |
| 74 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 75 | + asset_path: ./distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip |
| 76 | + asset_name: dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip |
| 77 | + asset_content_type: application/zip |
| 78 | + |
57 | 79 | - id: 'upload-release-asia'
|
58 | 80 | uses: 'google-github-actions/upload-cloud-storage@v2'
|
59 | 81 | with:
|
@@ -170,28 +192,6 @@ jobs:
|
170 | 192 | username: ${{ secrets.DOCKER_USERNAME }}
|
171 | 193 | password: ${{ secrets.DOCKER_PASSWORD }}
|
172 | 194 |
|
173 |
| - - name: Create GitHub release |
174 |
| - uses: actions/create-release@v1 |
175 |
| - id: create_release |
176 |
| - with: |
177 |
| - draft: false |
178 |
| - prerelease: false |
179 |
| - release_name: v${{ steps.read_version.outputs.content }} |
180 |
| - tag_name: v${{ steps.read_version.outputs.content }} |
181 |
| - body_path: CHANGELOG.md |
182 |
| - env: |
183 |
| - GITHUB_TOKEN: ${{ github.token }} |
184 |
| - |
185 |
| - - name: Upload distribution binary file |
186 |
| - uses: actions/upload-release-asset@v1 |
187 |
| - env: |
188 |
| - GITHUB_TOKEN: ${{ github.token }} |
189 |
| - with: |
190 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
191 |
| - asset_path: ./distribution/target/dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip |
192 |
| - asset_name: dqo-distribution-${{steps.read_version.outputs.content}}-bin.zip |
193 |
| - asset_content_type: application/zip |
194 |
| - |
195 | 195 | - name: Install python dependencies
|
196 | 196 | run: |
|
197 | 197 | python -m pip install --upgrade pip
|
|
0 commit comments