mirror of
https://github.com/lldap/lldap.git
synced 2026-03-31 15:07:48 +01:00
Publish job using matrix
Change publish job with matrix, don't fail if another job fail.
This commit is contained in:
committed by
GitHub
parent
e1aa2bfb18
commit
1b2dfbe52e
@@ -117,6 +117,10 @@ jobs:
|
|||||||
name: Publish on crates.io
|
name: Publish on crates.io
|
||||||
if: ${{ needs.pre_job.outputs.should_skip != 'true' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
|
if: ${{ needs.pre_job.outputs.should_skip != 'true' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
|
||||||
needs: pre_job
|
needs: pre_job
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
target: [lldap_auth, lldap, lldap_app, lldap_set_password, lldap_migration_tool]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
@@ -124,43 +128,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- name: Publish lldap_auth crate
|
- name: Publish ${{ matrix.target }} crate
|
||||||
uses: katyo/publish-crates@v2
|
uses: katyo/publish-crates@v2
|
||||||
with:
|
with:
|
||||||
args: -p lldap_auth
|
args: -p ${{ matrix.target }}
|
||||||
dry-run: ${{ github.event_name != 'release' }}
|
|
||||||
check-repo: ${{ github.event_name != 'pull_request' }}
|
|
||||||
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
||||||
ignore-unpublished-changes: ${{ github.event_name != 'release' }}
|
|
||||||
- name: Publish lldap crate
|
|
||||||
uses: katyo/publish-crates@v2
|
|
||||||
with:
|
|
||||||
args: -p lldap
|
|
||||||
dry-run: ${{ github.event_name != 'release' }}
|
|
||||||
check-repo: ${{ github.event_name != 'pull_request' }}
|
|
||||||
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
||||||
ignore-unpublished-changes: ${{ github.event_name != 'release' }}
|
|
||||||
- name: Publish lldap_app crate
|
|
||||||
uses: katyo/publish-crates@v2
|
|
||||||
with:
|
|
||||||
args: -p lldap_app
|
|
||||||
dry-run: ${{ github.event_name != 'release' }}
|
|
||||||
check-repo: ${{ github.event_name != 'pull_request' }}
|
|
||||||
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
||||||
ignore-unpublished-changes: ${{ github.event_name != 'release' }}
|
|
||||||
- name: Publish lldap_migration_tool crate
|
|
||||||
uses: katyo/publish-crates@v2
|
|
||||||
with:
|
|
||||||
args: -p lldap_migration_tool
|
|
||||||
dry-run: ${{ github.event_name != 'release' }}
|
|
||||||
check-repo: ${{ github.event_name != 'pull_request' }}
|
|
||||||
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
||||||
ignore-unpublished-changes: ${{ github.event_name != 'release' }}
|
|
||||||
- name: Publish lldap_set_password crate
|
|
||||||
uses: katyo/publish-crates@v2
|
|
||||||
with:
|
|
||||||
args: -p lldap_set_password
|
|
||||||
dry-run: ${{ github.event_name != 'release' }}
|
dry-run: ${{ github.event_name != 'release' }}
|
||||||
check-repo: ${{ github.event_name != 'pull_request' }}
|
check-repo: ${{ github.event_name != 'pull_request' }}
|
||||||
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
ignore-unpublished-changes: ${{ github.event_name != 'release' }}
|
ignore-unpublished-changes: ${{ github.event_name != 'release' }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user