Skip to content

Commit 5c4f30a

Browse files
author
goagain
authored
Fix the release issue Pattern 'azureauth-0.8.3-linux-x64.deb' does not match any files (#333)
* Fix the release issue artifact not found * Update release.yml * Update release.yml
1 parent cd7d1cb commit 5c4f30a

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,24 @@ jobs:
172172
ADO_AZUREAUTH_LINUX_PIPELINE_ID: ${{ secrets.ADO_AZUREAUTH_LINUX_PIPELINE_ID }}
173173
ADO_AZUREAUTH_LINUX_STAGE_ID: ${{ vars.ADO_AZUREAUTH_LINUX_STAGE_ID }}
174174
VERSION: ${{ github.event.inputs.version }}
175-
- name: Upload linux-x64 artifact
176-
uses: actions/upload-artifact@v3
177-
with:
178-
name: azureauth-${{ github.event.inputs.version }}-linux-x64.deb
179-
path: ${{ env.ADO_LINUX_ARTIFACT_DOWNLOAD_PATH }}/${{ env.ADO_LINUX_ARTIFACT_NAME }}/azureauth_${{ github.event.inputs.version }}-${{ env.DEBIAN_REVISION }}_amd64.deb
180-
- name: Upload linux-arm64 artifact
175+
176+
- name: Rename linux artifact
177+
env:
178+
DEB_AMD64_SOURCE: ${{ env.ADO_LINUX_ARTIFACT_DOWNLOAD_PATH }}/${{ env.ADO_LINUX_ARTIFACT_NAME }}/azureauth_${{ github.event.inputs.version }}-${{ env.DEBIAN_REVISION }}_amd64.deb
179+
DEB_AMD64_TARGET: azureauth-${{ github.event.inputs.version }}-linux-x64.deb
180+
DEB_ARM64_SOURCE: ${{ env.ADO_LINUX_ARTIFACT_DOWNLOAD_PATH }}/${{ env.ADO_LINUX_ARTIFACT_NAME }}/azureauth_${{ github.event.inputs.version }}-${{ env.DEBIAN_REVISION }}_arm64.deb
181+
DEB_ARM64_TARGET: azureauth-${{ github.event.inputs.version }}-linux-arm64.deb
182+
run: |
183+
mv ${{ env.DEB_AMD64_SOURCE }} ${{ env.DEB_AMD64_TARGET }}
184+
mv ${{ env.DEB_ARM64_SOURCE }} ${{ env.DEB_ARM64_TARGET }}
185+
186+
- name: Upload linux artifact
181187
uses: actions/upload-artifact@v3
182188
with:
183-
name: azureauth-${{ github.event.inputs.version }}-linux-arm64.deb
184-
path: ${{ env.ADO_LINUX_ARTIFACT_DOWNLOAD_PATH }}/${{ env.ADO_LINUX_ARTIFACT_NAME }}/azureauth_${{ github.event.inputs.version }}-${{ env.DEBIAN_REVISION }}_arm64.deb
189+
name: azureauth-linux
190+
path: |
191+
azureauth-${{ github.event.inputs.version }}-linux-x64.deb
192+
azureauth-${{ github.event.inputs.version }}-linux-arm64.deb
185193
186194
# Currently we package artifacts into the most commonly accessible archive format for their respective platforms.
187195
package:
@@ -231,8 +239,6 @@ jobs:
231239
# These permissions are required in order to use `softprops/action-gh-release` to upload.
232240
permissions:
233241
contents: write
234-
env:
235-
DEBIAN_REVISION: 1
236242
steps:
237243
- name: Download win10-x64 artifact
238244
uses: actions/download-artifact@v3
@@ -249,11 +255,7 @@ jobs:
249255
- name: Download linux-x64 artifact
250256
uses: actions/download-artifact@v3
251257
with:
252-
name: azureauth-${{ github.event.inputs.version }}-linux-x64.deb
253-
- name: Download linux-arm64 artifact
254-
uses: actions/download-artifact@v3
255-
with:
256-
name: azureauth-${{ github.event.inputs.version }}-linux-arm64.deb
258+
name: azureauth-linux
257259

258260
- name: Create Release
259261
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)