chore(workflow): tauri-bundler path considering workspace (#477)

`tauri-bundler` is not in the main cargo workspace so the target directory is not in the top level. Update the publishPath to compensate.

Also removing a couple extraneous things that aren't needed either. We had an extra '/' and we don't need to bother showing the directory within the `cargo package` command.
This commit is contained in:
Jacob Bolda
2020-03-01 08:07:49 -06:00
committed by GitHub
parent 0303756a81
commit 83d6e052e6

View File

@@ -18,23 +18,23 @@ jobs:
- name: tauri-bundler
registryName: tauri-bundler
path: cli/tauri-bundler
publishPath: /target/package
publishPath: cli/tauri-bundler/target/package # not in workspace so target folder is nested
- name: tauri-core
registryName: tauri
path: tauri
publishPath: /target/package
publishPath: target/package
- name: tauri-api
registryName: tauri-api
path: tauri-api
publishPath: /target/package
publishPath: target/package
- name: tauri-updater
registryName: tauri-updater
path: tauri-updater
publishPath: /target/package
publishPath: target/package
- name: tauri-utils
registryName: tauri-utils
path: tauri-utils
publishPath: /target/package
publishPath: target/package
steps:
- uses: actions/checkout@v2
with:
@@ -59,14 +59,9 @@ jobs:
TAURI_DIST_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/dist
TAURI_DIR: ${{ runner.workspace }}/tauri/tauri/test/fixture/src-tauri
run: |
echo "package dir:"
ls
cargo package --no-verify
echo "We will publish:" $PACKAGE_VERSION
echo "This is current latest:" $PUBLISHED_VERSION
echo "post package dir:"
cd ${{ matrix.publishPath }}
ls
- name: cargo audit
if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
working-directory: ${{ matrix.package.path }}