From 230c274fd08814625c6b087e54bc5ef7b74464d5 Mon Sep 17 00:00:00 2001 From: Evsyukov Denis Anatolyevich Date: Wed, 11 Mar 2020 08:57:07 +0300 Subject: [~] rewrite action --- .github/workflows/publish.yml | 46 ++++++++++++++++++------------------------- 1 file changed, 19 insertions(+), 27 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 75df449..adf85ca 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,32 +9,24 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - - os: ubuntu-latest - artifact_name: t - asset_name: t-linux-amd64 - - os: windows-latest - artifact_name: t.exe - asset_name: t-windows-amd64 - - os: macos-latest - artifact_name: t - asset_name: t-macos-amd64 + os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: hecrj/setup-rust-action@v1-release - with: - rust-version: stable - - uses: actions/checkout@v2 - - name: Build - run: cargo build --release --locked - - name: UPX binary - uses: actions-github/upx@master - with: - file: target/release/${{ matrix.artifact_name }} - upx_args: '-9' - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.TOKEN }} - file: target/release/${{ matrix.artifact_name }} - asset_name: ${{ matrix.asset_name }} - tag: ${{ github.ref }} \ No newline at end of file + - uses: hecrj/setup-rust-action@v1-release + with: + rust-version: stable + - uses: actions/checkout@v2 + - name: Build + run: cargo build --release --locked + - name: UPX binary + uses: actions-github/upx@master + with: + file: target/release/t + upx_args: '-9' + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.TOKEN }} + file: target/release/t + asset_name: t-${{ runner.os }} + tag: ${{ github.ref }} \ No newline at end of file -- cgit v1.2.3