diff --git a/.github/workflows/auto-compress-functionality.yaml b/.github/workflows/auto-compress-functionality.yaml index 870a539..9438f4f 100644 --- a/.github/workflows/auto-compress-functionality.yaml +++ b/.github/workflows/auto-compress-functionality.yaml @@ -25,7 +25,6 @@ jobs: override: true target: "x86_64-unknown-linux-musl" - uses: "Swatinem/rust-cache@v2" - if: "always()" with: key: "cli-functionality" cache-on-failure: true diff --git a/.github/workflows/cli-functionality.yaml b/.github/workflows/cli-functionality.yaml index 12658d8..ba66c94 100644 --- a/.github/workflows/cli-functionality.yaml +++ b/.github/workflows/cli-functionality.yaml @@ -25,7 +25,6 @@ jobs: profile: "minimal" target: "x86_64-unknown-linux-musl" - uses: "Swatinem/rust-cache@v2" - if: "always()" with: key: "cli-functionality" cache-on-failure: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e3adb39..e041a44 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,6 +20,12 @@ jobs: toolchain: "stable" profile: "minimal" target: "x86_64-unknown-linux-musl" + - uses: "Swatinem/rust-cache@v2" + with: + key: "release" + cache-on-failure: true + - name: "Install musl-tools" + run: "sudo apt-get update && sudo apt-get install -y musl-tools" - name: "Build static-linked release binary!" uses: "actions-rs/cargo@v1" with: @@ -27,17 +33,11 @@ jobs: args: "--release --target=x86_64-unknown-linux-musl" - name: "Package peckish!!" run: "./target/x86_64-unknown-linux-musl/release/peckish -c ./peckish.release.yaml -r report.txt" - - name: "Make GH aware of release artifacts" - id: "release-artifacts" - run: 'echo "artifacts=$(cat report.txt)" >> $GITHUB_OUTPUT' - - name: "Generate changelog" - uses: "metcalfc/changelog-generator@v4.1.0" - with: - myToken: "${{ secrets.GITHUB_TOKEN }}" - name: "Create release" uses: "softprops/action-gh-release@v1" env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - with: - body: "${{ steps.changelog.outputs.changelog }}" - files: "${{ steps.release-artifacts.outputs.artifacts }}" + - name: "Upload release assets with gh cli" + run: "cat report.txt | xargs -I {} gh release upload ${{ github.ref_name }} {}" + env: + GH_TOKEN: ${{ github.token }} diff --git a/Cargo.toml b/Cargo.toml index 1de12d4..04bc765 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "peckish" version = "0.0.1" -description = "Create and manipulate Linux package formats!" +description = "Create, manipulate, and transform Linux package formats!" license = "Apache-2.0" edition = "2021" readme = "README.md"