mirror of
https://github.com/dtolnay/install.git
synced 2024-11-22 08:29:30 +01:00
Add cargo-expand build
This commit is contained in:
parent
0c58fefddf
commit
3f167e0ca8
1 changed files with 29 additions and 0 deletions
29
.github/workflows/cargo-expand.yml
vendored
Normal file
29
.github/workflows/cargo-expand.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: cargo-expand
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- cargo-expand
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: cargo-expand
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- run: cargo install cargo-expand
|
||||
- id: which
|
||||
run: echo "::set-output name=which::$(which cargo-expand)"
|
||||
- run: echo "$PRIVATE_KEY" | gpg --import
|
||||
env:
|
||||
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}
|
||||
- run: gpg --output cargo-expand.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-expand.sig ${{steps.which.outputs.which}}
|
||||
- uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
${{steps.which.outputs.which}}
|
||||
cargo-expand.sig
|
||||
fail_on_unmatched_files: true
|
Loading…
Reference in a new issue