aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvsyukov Denis Anatolyevich <[email protected]>2020-03-11 08:57:07 +0300
committerEvsyukov Denis Anatolyevich <[email protected]>2020-03-11 08:57:07 +0300
commit230c274fd08814625c6b087e54bc5ef7b74464d5 (patch)
tree03005b199419a2f4f22c746b98f1610f0413e271
parent[~] matrix (diff)
downloadt-230c274fd08814625c6b087e54bc5ef7b74464d5.tar.xz
t-230c274fd08814625c6b087e54bc5ef7b74464d5.zip
[~] rewrite action
-rw-r--r--.github/workflows/publish.yml46
1 files 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