From ac4d6877892c6e998152dc1b37a3cefee51a936f Mon Sep 17 00:00:00 2001 From: Aitor Pazos Date: Thu, 11 Mar 2021 19:51:20 -0300 Subject: [PATCH] Adjust release tar.gz path to work around permission issues --- .github/workflows/create-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index d390b61..342d247 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -21,7 +21,7 @@ jobs: with: args: cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test && cargo build --release - name: Package release - run: cd target/release && tar -cvf scrypt-rs-amd64.tar.gz scrypt-rs + run: cd target/release && tar -cvf ../../scrypt-rs-amd64.tar.gz scrypt-rs - name: Create Release id: create_release uses: actions/create-release@v1 @@ -42,6 +42,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/release/scrypt-rs-amd64.tar.gz + asset_path: ./scrypt-rs-amd64.tar.gz asset_name: scrypt-rs-amd64-${{ steps.get_version.outputs.VERSION }}.tar.gz asset_content_type: application/tar+gzip