Mercurial > crates > nonstick
diff .github/workflows/build.yml @ 36:d1f0c1cf3c6e
Github actions publish crate
author | Nigma <magnusgsvend@gmail.com> |
---|---|
date | Sun, 24 Jul 2022 02:05:30 +0200 |
parents | 86113e45f88f |
children | a132009ecc5c |
line wrap: on
line diff
--- a/.github/workflows/build.yml Wed Jun 08 09:28:13 2022 -0700 +++ b/.github/workflows/build.yml Sun Jul 24 02:05:30 2022 +0200 @@ -70,5 +70,33 @@ with: command: clippy args: --manifest-path pam/Cargo.toml -- -D warnings + build: + needs: check + runs-on: ubuntu-latest + steps: + - name: Use cargo cache + uses: actions/cache@v2 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Publish module + uses: katyo/publish-crates@v1 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + check-repo: ${{ github.event_name == 'push' }} + ignore-unpublished-changes: true + # Only publish pam module, as pam-http and pam-sober are example projects + args: --package pam-bindings