Skip to content

Commit

Permalink
Try again: upload release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceadams committed Feb 6, 2020
1 parent 16e820b commit da5d852
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ jobs:
uses: actions/checkout@v1
- name: Build
run: cargo build --release --verbose
- name: Clippy
run: cargo clippy --verbose
- name: Test
run: cargo test --verbose
- name: Publish
run: |
echo github.repository ${{ github.repository }}
echo github.ref ${{ github.ref }}
echo matrix.os ${{ matrix.os }}
curl \
--data-binary @./target/release/yj \
--header 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'Authorization: Bearer ${{ github.token }}' \
--header 'Content-Type: application/octet-stream' \
--url https://uploads.github.com/repos/${{ github.repository }}/releases/1.1.1/assets?name=yj.${{ jobs.build.strategy.matrix.os }}
--url https://uploads.github.com/repos/${{ github.repository }}/releases/${{ github.ref }}/assets?name=yj.${{ matrix.os }}

0 comments on commit da5d852

Please sign in to comment.