| 1 | |
| 2 | name: Publish |
| 3 | |
| 4 | on: |
| 5 | push: |
| 6 | branches: |
| 7 | - 'main' |
| 8 | |
| 9 | jobs: |
| 10 | publish: |
| 11 | runs-on: ubuntu-latest |
| 12 | timeout-minutes: 5 |
| 13 | |
| 14 | steps: |
| 15 | - uses: actions/checkout@v2 |
| 16 | |
| 17 | - uses: actions-rs/toolchain@v1 |
| 18 | with: |
| 19 | toolchain: stable |
| 20 | override: true |
| 21 | |
| 22 | - uses: katyo/publish-crates@v1 |
| 23 | with: |
| 24 | registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
| 25 | ignore-unpublished-changes: true |