Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszSki authored Dec 6, 2024
1 parent 7639203 commit 137e650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ jobs:
JF_PASSWORD: ${{ secrets.JF_PASSWORD }}
shell: bash
run: |
asset=$(gh api /repos/netfoundry/zfw/releases --jq '( last ((.[].assets | sort_by(.created_at)).[] | select(.name=="${{ env.APP_NAME }}-router-${{ needs.build_amd64_release.outputs.version }}.${{ matrix.goarch }}.${{ matrix.pkg_type }}")))')
asset=$(gh api /repos/netfoundry/zfw/releases --jq '( last ((.[].assets | sort_by(.created_at)).[] | select(.name=="${{ env.APP_NAME }}-router_${{ needs.build_amd64_release.outputs.version }}_${{ matrix.goarch }}.${{ matrix.pkg_type }}")))')
curl -Ls "$(jq -r .browser_download_url <<< "$asset")" -H "Accept: application/vnd.github.v3+json" --output ./"$(jq -r .name <<< "$asset")"
jf rt upload
./${{ env.APP_NAME }}-router-${{ needs.build_amd64_release.outputs.version }}.${{ matrix.goarch }}.${{ matrix.pkg_type }} \
./${{ env.APP_NAME }}-router_${{ needs.build_amd64_release.outputs.version }}_${{ matrix.goarch }}.${{ matrix.pkg_type }} \
netfoundry-deb-stable/pool/${{ env.APP_NAME }}-router/${{ matrix.distro_name }}/${{ matrix.goarch }}/ \
--url https://netfoundry.jfrog.io/artifactory/ \
--user ${{ secrets.JF_USER}} \
Expand Down

0 comments on commit 137e650

Please sign in to comment.