3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-22 16:29:32 +01:00

Add cargo-outdated build

This commit is contained in:
David Tolnay 2021-10-08 00:21:45 -04:00
parent d9d571073c
commit de230d0f11
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

29
.github/workflows/cargo-outdated.yml vendored Normal file
View file

@ -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