Mercurial > crates > nonstick
comparison .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 |
comparison
equal
deleted
inserted
replaced
| 35:3b2ff50db010 | 36:d1f0c1cf3c6e |
|---|---|
| 68 - name: Run cargo clippy | 68 - name: Run cargo clippy |
| 69 uses: actions-rs/cargo@v1 | 69 uses: actions-rs/cargo@v1 |
| 70 with: | 70 with: |
| 71 command: clippy | 71 command: clippy |
| 72 args: --manifest-path pam/Cargo.toml -- -D warnings | 72 args: --manifest-path pam/Cargo.toml -- -D warnings |
| 73 build: | |
| 74 needs: check | |
| 75 runs-on: ubuntu-latest | |
| 76 steps: | |
| 77 - name: Use cargo cache | |
| 78 uses: actions/cache@v2 | |
| 79 with: | |
| 80 path: | | |
| 81 ~/.cargo/bin/ | |
| 82 ~/.cargo/registry/index/ | |
| 83 ~/.cargo/registry/cache/ | |
| 84 ~/.cargo/git/db/ | |
| 85 target/ | |
| 86 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| 73 | 87 |
| 88 - name: Install stable toolchain | |
| 89 uses: actions-rs/toolchain@v1 | |
| 90 with: | |
| 91 profile: minimal | |
| 92 toolchain: stable | |
| 93 override: true | |
| 94 - name: Publish module | |
| 95 uses: katyo/publish-crates@v1 | |
| 96 with: | |
| 97 registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
| 98 check-repo: ${{ github.event_name == 'push' }} | |
| 99 ignore-unpublished-changes: true | |
| 100 # Only publish pam module, as pam-http and pam-sober are example projects | |
| 101 args: --package pam-bindings | |
| 74 | 102 |
