From de230d0f11c34ac5130ba49f809b536ae594349e Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 8 Oct 2021 00:21:45 -0400 Subject: [PATCH] Add cargo-outdated build --- .github/workflows/cargo-outdated.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/cargo-outdated.yml diff --git a/.github/workflows/cargo-outdated.yml b/.github/workflows/cargo-outdated.yml new file mode 100644 index 0000000..aac5af0 --- /dev/null +++ b/.github/workflows/cargo-outdated.yml @@ -0,0 +1,29 @@ +name: cargo-outdated + +on: + push: + tags: + - cargo-outdated + +jobs: + build: + name: cargo-outdated + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@stable + - run: cargo install --force cargo-outdated + - id: which + run: echo "::set-output name=which::$(which cargo-outdated)" + - run: echo "$PRIVATE_KEY" | gpg --import + env: + PRIVATE_KEY: ${{secrets.PRIVATE_KEY}} + - run: gpg --output cargo-outdated.sig --detach-sig ${{steps.which.outputs.which}} + - run: gpg --output signing-key.gpg --dearmor signing-key.asc + - run: gpg --no-default-keyring --keyring ./signing-key.gpg --verify cargo-outdated.sig ${{steps.which.outputs.which}} + - uses: softprops/action-gh-release@v1 + with: + files: | + ${{steps.which.outputs.which}} + cargo-outdated.sig + fail_on_unmatched_files: true