From 305da8a944509c8c76c0569e87396a07577c1190 Mon Sep 17 00:00:00 2001 From: Finn-Thorben Sell Date: Thu, 23 Jun 2022 22:41:10 +0200 Subject: [PATCH] fix release workflow --- .github/workflows/release.yml | 16 +++++++++++----- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19892cd..3e135bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,7 @@ jobs: os: - { runner: ubuntu-22.04, bin-suffix: linux-ubuntu-2204 } - { runner: ubuntu-20.04, bin-suffix: linux-generic } - runs-on: ${{ matrix.runner }} + runs-on: ${{ matrix.os.runner }} needs: [ cargo-release ] steps: - run: | @@ -53,10 +53,11 @@ jobs: with: ref: ${{ needs.cargo-release.outputs.tag }} - run: cargo build -v --all-features --profile=release + - run: mv target/release/kustomize-pass target/release/kustomize-pass--${{ matrix.os.bin-suffix }} - uses: actions/upload-artifact@v3 with: - name: kustomize-pass--${{ matrix.bin-suffix }} - path: target/release/kustomize-pass + name: kustomize-pass--${{ matrix.os.bin-suffix }} + path: target/release/kustomize-pass--${{ matrix.os.bin-suffix }} github-release: runs-on: ubuntu-latest @@ -68,13 +69,18 @@ jobs: with: ref: ${{ needs.cargo-release.outputs.tag }} - uses: actions/download-artifact@v3 + with: + path: ./artifacts + - run: | + ls -l artifacts - uses: softprops/action-gh-release@v1 with: body_path: changelog.md tag_name: ${{ needs.cargo-release.outputs.tag }} + fail_on_unmatched_files: true + token: ${{ secrets.GITHUB_TOKEN }} files: | - kustomize-pass--linux-ubuntu-2204 - kustomize-pass--linux-generic + artifacts/*/kustomize-pass--** reset-changelog: runs-on: ubuntu-latest diff --git a/Cargo.lock b/Cargo.lock index 698cde5..c9530a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -370,7 +370,7 @@ dependencies = [ [[package]] name = "kustomize-pass" -version = "0.2.1" +version = "0.2.10" dependencies = [ "anyhow", "base64", diff --git a/Cargo.toml b/Cargo.toml index 0354a9d..9d3b1b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "kustomize-pass" description = "kustomize generator and transformer plugin for pass managed secrets" documentation = "https://docs.rs/kustomize-pass" -version = "0.2.1" +version = "0.2.10" authors = ["Finn Sell "] edition = "2021" repository = "https://github.com/ftsell/kustomize-pass"