Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Apr 29, 2024
1 parent f2ef68f commit bfaf0d0
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,31 +255,37 @@ jobs:
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: sudo apt update && sudo apt install -y file

- name: Upload release archives
if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os != 'windows-latest'
shell: bash
run: .github/scripts/upload_gh_asset.sh "${{ secrets.GITHUB_TOKEN }}" "${{ needs.create-release.outputs.upload_url }}" "${{ env.ASSET }}"
# - name: Upload release archives
# if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os != 'windows-latest'
# shell: bash
# run: .github/scripts/upload_gh_asset.sh "${{ secrets.GITHUB_TOKEN }}" "${{ needs.create-release.outputs.upload_url }}" "${{ env.ASSET }}"

# - name: Upload release archives (windows)
# if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os == 'windows-latest'
# # This exists purely because the GH runners don't properly escape the path to the bash script and the WSL fails to run it.
# shell: pwsh
# run: bash .github/scripts/upload_gh_asset_win.sh "${{ secrets.GITHUB_TOKEN }}" "" "${{ env.ASSET }}"

- uses: shogo82148/actions-upload-release-asset@v1
if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os == 'windows-latest'
- uses: n0-computer/actions-upload-release-asset@arqu/multi_ul
if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push')
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: iroh-${{ needs.create-release.outputs.release_version }}-${{ matrix.cargo_targets }}.zip
asset_path: ${{ env.ASSET }}

- uses: shogo82148/actions-upload-release-asset@v1
if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os == 'windows-latest'
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: iroh-relay-${{ needs.create-release.outputs.release_version }}-${{ matrix.cargo_targets }}.zip
# - uses: shogo82148/actions-upload-release-asset@v1
# if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os == 'windows-latest'
# with:
# upload_url: ${{ needs.create-release.outputs.upload_url }}
# asset_path: iroh-${{ needs.create-release.outputs.release_version }}-${{ matrix.cargo_targets }}.zip

# - uses: shogo82148/actions-upload-release-asset@v1
# if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os == 'windows-latest'
# with:
# upload_url: ${{ needs.create-release.outputs.upload_url }}
# asset_path: iroh-relay-${{ needs.create-release.outputs.release_version }}-${{ matrix.cargo_targets }}.zip

- uses: shogo82148/actions-upload-release-asset@v1
if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os == 'windows-latest'
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: iroh-dns-server-${{ needs.create-release.outputs.release_version }}-${{ matrix.cargo_targets }}.zip
# - uses: shogo82148/actions-upload-release-asset@v1
# if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os == 'windows-latest'
# with:
# upload_url: ${{ needs.create-release.outputs.upload_url }}
# asset_path: iroh-dns-server-${{ needs.create-release.outputs.release_version }}-${{ matrix.cargo_targets }}.zip

0 comments on commit bfaf0d0

Please sign in to comment.