chore(workflow): order cargo publish and limit to 1 (#535)

We were running into race conditions where one package depended on another being published. Limit to only allow one publish at a time, and sort based on dependencies to (hopefully) eliminate the race condition.
This commit is contained in:
Jacob Bolda 2020-03-29 11:57:00 -05:00 committed by GitHub
parent 2e67d2bc9f
commit cc7c26b245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,15 +13,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
package:
- name: tauri-bundler
registryName: tauri-bundler
path: cli/tauri-bundler
publishPath: cli/tauri-bundler/target/package # not in workspace so target folder is nested
- name: tauri-core
registryName: tauri
path: tauri
- name: tauri-utils
registryName: tauri-utils
path: tauri-utils
publishPath: target/package
- name: tauri-api
registryName: tauri-api
@ -31,9 +32,9 @@ jobs:
registryName: tauri-updater
path: tauri-updater
publishPath: target/package
- name: tauri-utils
registryName: tauri-utils
path: tauri-utils
- name: tauri-core
registryName: tauri
path: tauri
publishPath: target/package
steps:
- uses: actions/checkout@v2