From 83d6e052e67b1926ccabe5b4d2933018a3ed7b27 Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Sun, 1 Mar 2020 08:07:49 -0600 Subject: [PATCH] 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. --- .github/workflows/release-cargo.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-cargo.yml b/.github/workflows/release-cargo.yml index afa11f68c..64d7e9911 100644 --- a/.github/workflows/release-cargo.yml +++ b/.github/workflows/release-cargo.yml @@ -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 }}