Skip to content

v.0.1.1

v.0.1.1 #6

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
name: linux64
asset_name: keepsorted-linux64
- os: macos-12
name: macos
asset_name: keepsorted-macos
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release --all-targets
- name: Prepare Release Binary
run: |
mkdir -p release
cp target/release/keepsorted release/${{ matrix.asset_name }}
tar -czvf ${{ matrix.asset_name }}.tar.gz -C release ${{ matrix.asset_name }}
- name: Upload Compressed Release Asset (tar.gz)
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ matrix.asset_name }}.tar.gz
asset_name: ${{ matrix.asset_name }}.tar.gz
asset_content_type: application/gzip
- name: Upload Original Binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./release/${{ matrix.asset_name }}
asset_name: ${{ matrix.asset_name }}
asset_content_type: application/octet-stream