From ccc216af97953449e9a00de6b24c220d18cfa438 Mon Sep 17 00:00:00 2001 From: Alexandr Bogomyakov Date: Sun, 26 Apr 2020 04:07:45 +0300 Subject: [PATCH] Fix CI --- .github/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0ad6b7..b5b04bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,8 +10,6 @@ jobs: name: Upload Release Asset runs-on: ubuntu-latest steps: - - name: Setting version - run: ver=$(grep -m1 version Cargo.toml | awk '{gsub("\"", "", $NF); print $NF}') - name: Checkout code uses: actions/checkout@v2 - name: Pre-build @@ -20,7 +18,7 @@ jobs: - name: Build binary run: cargo build --release - name: Build deb - run: cargo deb --output ./target/debian/mus-fuse_${ver}_amd64.deb + run: cargo deb --output ./target/debian/mus-fuse_amd64.deb - name: Create Release id: create_release uses: actions/create-release@v1 @@ -39,7 +37,7 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: ./target/release/mus-fuse - asset_name: mus-fuse-${{ ver }} + asset_name: mus-fuse asset_content_type: application/x-pie-executable - name: Upload Release Deb id: upload-release-asset-deb @@ -48,6 +46,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./target/debian/mus-fuse*.deb - asset_name: mus-fuse_${ver}_amd64.deb + asset_path: ./target/debian/mus-fuse_amd64.deb + asset_name: mus-fuse_amd64.deb asset_content_type: application/vnd.debian.binary-package