From 7b22a8d6cb1615d4880089efa4fe179793526d4b Mon Sep 17 00:00:00 2001 From: Mehul Arora Date: Mon, 4 Nov 2024 18:46:33 -0500 Subject: [PATCH] .. --- .github/workflows/release.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cda4f09..eca9591 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,13 +25,7 @@ jobs: target: aarch64-pc-windows-msvc steps: - name: checkout - uses: actions/checkout@v4 - - name: version - id: version - uses: SebRollen/toml-action@v1.2.0 - with: - file: Cargo.toml - field: package.version + uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: rustflags: "" @@ -46,15 +40,16 @@ jobs: cd target/${{ matrix.target }}/release if [ "${{ matrix.os }}" = "windows-latest" ]; - then\n 7z a ../../../$s2-cli-${{ matrix.target }}.zip $s2-cli.exe + then + 7z a ../../../$s2-cli-${{ matrix.target }}.zip s2-cli.exe else - tar -czf ../../../$s2-cli-${{ matrix.target }}.tar.gz $s2-cli + tar -czf ../../../$s2-cli-${{ matrix.target }}.tar.gz s2-cli fi - name: upload artifacts uses: actions/upload-artifact@v4 with: name: ${{ matrix.target }} - path: | + path: | *.tar.gz *.zip if-no-files-found: error @@ -65,6 +60,14 @@ jobs: permissions: contents: write steps: + - name: checkout + uses: actions/checkout@v4 + - name: version + id: version + uses: SebRollen/toml-action@v1.2.0 + with: + file: Cargo.toml + field: package.version - name: download artifacts uses: actions/download-artifact@v4 - name: create Release @@ -73,5 +76,4 @@ jobs: files: | **/*.tar.gz **/*.zip - draft: true - generate_release_notes: true + name: ${{ steps.version.outputs.value }}