Skip to content

Commit a556c4c

Browse files
author
Jakub Raczek
authored
Update github-actions.yml
1 parent 6050964 commit a556c4c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/github-actions.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ jobs:
6969
run: compress-archive -path "./release" ./release/DBTestCompare${{ env.dBTestCompareVersion }}.zip
7070
- shell: pwsh
7171
run: Copy './release/DBTestCompare${{ env.dBTestCompareVersion }}.zip' '${{ github.workspace }}'
72-
- name: Create Release
73-
uses: ncipollo/release-action@v1
74-
with:
75-
token: ${{ secrets.GITHUB_TOKEN }}
76-
artifacts: ./release/DBTestCompare${{ env.dBTestCompareVersion }}.zip
77-
tag: ${{ env.dBTestCompareVersion }}
78-
name: "Version ${{ env.dBTestCompareVersion }}"
79-
skipIfReleaseExists: true
80-
if: success() && startsWith(github.ref, 'refs/tags/')
72+
- shell: bash
73+
run: |
74+
upload_url=$(curl -sL https://api.github.com/repos/Accenture/DBTestCompare/releases/latest | jq -r '.upload_url')
75+
echo UPLOAD_URL=$upload_url >> $GITHUB_ENV
76+
- name: 'Upload linux artifact to Release'
77+
run: gh release upload ${{ env.dBTestCompareVersion }} ./release/DBTestCompare${{ env.dBTestCompareVersion }}.zip
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)