diff options
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 69f449b..f5fd4a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,16 +12,16 @@ jobs: include: - os: macOS-latest archive: tar - # output: streamlib-${{ github.ref }}-x86_64-apple-darwin.tar.gz - # content_type: 'application/gzip' + output: streamlib-${{ github.ref }}-x86_64-apple-darwin.tar.gz + content_type: 'application/gzip' - os: windows-latest archive: zip - # output: streamlib-${{ github.ref }}-x86_64-pc-windows-msvc.zip - # content_type: application/zip + output: streamlib-${{ github.ref }}-x86_64-pc-windows-msvc.zip + content_type: application/zip - os: ubuntu-latest archive: tar - # output: streamlib-${{ github.ref }}-x86_64-unknown-linux-gnu.tar.gz - # content_type: application/gzip + output: streamlib-${{ github.ref }}-x86_64-unknown-linux-gnu.tar.gz + content_type: application/gzip steps: - name: Checkout @@ -38,36 +38,36 @@ jobs: - name: Test run: cargo test --verbose - # - name: Build ZIP - # id: build_zip - # if: matrix.archive == 'zip' - # run: | - # zip ${{ matrix.output }} target/release/streamlib.exe + - name: Build ZIP + id: build_zip + if: matrix.archive == 'zip' + run: | + zip ${{ matrix.output }} target/release/foo.exe - # - name: Build TAR - # id: build_tar - # if: matrix.archive == 'tar' - # run: | - # tar czvf ${{ matrix.output }} target/release/streamlib + - name: Build TAR + id: build_tar + if: matrix.archive == 'tar' + run: | + tar czvf ${{ matrix.output }} target/release/foo - # - name: Create Release - # id: create_release - # uses: actions/create-release@master - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: ${{ github.ref }} - # release_name: Release ${{ github.ref }} - # draft: false - # prerelease: true # for now we only do pre-releases + - name: Create Release + id: create_release + uses: actions/create-release@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: true # for now we only do pre-releases - # - name: Upload Release Asset - # id: upload-release-asset - # uses: actions/upload-release-asset@master - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: ./${{ matrix.output }} - # asset_name: ${{ matrix.output }} - # asset_content_type: ${{ matrix.content_type }} + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./${{ matrix.output }} + asset_name: ${{ matrix.output }} + asset_content_type: ${{ matrix.content_type }} |
