diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4d80e06..6a6d82b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,12 +10,12 @@ name: Create Release env: # Could, potentially automatically parse # the bin name, but let's do it automatically for now. - RELEASE_BIN: gh-actions-template + RELEASE_BIN: rgpre # Space separated paths to include in the archive. # Start relative paths with a dot if you don't want # paths to be preserved. Use "/" as a delimiter. - RELEASE_ADDS: README.md LICENSE + RELEASE_ADDS: README.md CARGO_TERM_COLOR: always @@ -48,11 +48,11 @@ jobs: run: mkdir artifacts - name: Create archive for Linux - run: 7z a -ttar -so -an ./target/release/${{ env.RELEASE_BIN }} ${{ env.RELEASE_ADDS }} | 7z a -si ./artifacts/${{ env.RELEASE_BIN }}-linux-x86_64.tar.gz + run: 7z a -ttar -so -an ./target/release/${{ env.RELEASE_BIN }} | 7z a -si ./artifacts/${{ env.RELEASE_BIN }}-linux-x86_64.tar.gz if: matrix.os == 'ubuntu-latest' - name: Create archive for Windows - run: 7z a -tzip ./artifacts/${{ env.RELEASE_BIN }}-windows-x86_64.zip ./target/release/${{ env.RELEASE_BIN }}.exe ${{ env.RELEASE_ADDS }} + run: 7z a -tzip ./artifacts/${{ env.RELEASE_BIN }}-windows-x86_64.zip ./target/release/${{ env.RELEASE_BIN }}.exe if: matrix.os == 'windows-latest' - name: Install p7zip @@ -61,7 +61,7 @@ jobs: if: matrix.os == 'macos-latest' - name: Create archive for MacOS - run: 7z a -tzip ./artifacts/${{ env.RELEASE_BIN }}-mac-x86_64.zip ./target/release/${{ env.RELEASE_BIN }} ${{ env.RELEASE_ADDS }} + run: 7z a -tzip ./artifacts/${{ env.RELEASE_BIN }}-mac-x86_64.zip ./target/release/${{ env.RELEASE_BIN }} if: matrix.os == 'macos-latest' # This will double-zip