Browse Source

add envs and publishPath, don't verify (#414) [version updates]

We were missing the envs so tauri-core didn't publish. It is fine if every package has these envs. We shouldn't need to verify as we have already built many times prior, and the verification gets very odd with packages all being bumped and being interdependent (inception verification).
Jacob Bolda 5 years ago
parent
commit
c4810ff195
1 changed files with 13 additions and 3 deletions
  1. 13 3
      .github/workflows/release-cargo.yml

+ 13 - 3
.github/workflows/release-cargo.yml

@@ -11,6 +11,9 @@ on:
 jobs:
 jobs:
   publish:
   publish:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
+    env:
+      TAURI_DIST_DIR: tauri/test/fixture/dist
+      TAURI_DIR: ../test/fixture/src-tauri
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
@@ -26,12 +29,15 @@ jobs:
           - name: tauri-api
           - name: tauri-api
             registryName: tauri-api
             registryName: tauri-api
             path: tauri-api
             path: tauri-api
+            publishPath: /target/package
           - name: tauri-updater
           - name: tauri-updater
             registryName: tauri-updater
             registryName: tauri-updater
             path: tauri-updater
             path: tauri-updater
+            publishPath: /target/package
           - name: tauri-utils
           - name: tauri-utils
             registryName: tauri-utils
             registryName: tauri-utils
             path: tauri-utils
             path: tauri-utils
+            publishPath: /target/package
     steps:
     steps:
       - uses: actions/checkout@v2
       - uses: actions/checkout@v2
         with:
         with:
@@ -55,7 +61,7 @@ jobs:
         run: |
         run: |
           echo "package dir:"
           echo "package dir:"
           ls
           ls
-          cargo package
+          cargo package --no-verify
           echo "We will publish:" $PACKAGE_VERSION
           echo "We will publish:" $PACKAGE_VERSION
           echo "This is current latest:" $PUBLISHED_VERSION
           echo "This is current latest:" $PUBLISHED_VERSION
           echo "post package dir:"
           echo "post package dir:"
@@ -67,13 +73,17 @@ jobs:
         run: |
         run: |
           cargo install cargo-audit
           cargo install cargo-audit
           echo "# Cargo Audit" | tee -a ${{runner.workspace }}/notes.md
           echo "# Cargo Audit" | tee -a ${{runner.workspace }}/notes.md
+          echo "```" >> ${{runner.workspace }}/notes.md
           cargo audit 2>&1 | tee -a ${{runner.workspace }}/notes.md
           cargo audit 2>&1 | tee -a ${{runner.workspace }}/notes.md
+          echo "```" >> ${{runner.workspace }}/notes.md
       - name: Publish ${{ matrix.package.name }}
       - name: Publish ${{ matrix.package.name }}
         if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
         if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
         working-directory: ${{ matrix.package.path }}
         working-directory: ${{ matrix.package.path }}
         run: |
         run: |
           echo "# Cargo Publish" | tee -a ${{runner.workspace }}/notes.md
           echo "# Cargo Publish" | tee -a ${{runner.workspace }}/notes.md
-          cargo publish 2>&1 | tee -a ${{runner.workspace }}/notes.md
+          echo "```" >> ${{runner.workspace }}/notes.md
+          cargo publish --no-verify 2>&1 | tee -a ${{runner.workspace }}/notes.md
+          echo "```" >> ${{runner.workspace }}/notes.md
       - name: Create Release
       - name: Create Release
         id: create_crate_release
         id: create_crate_release
         if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
         if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
@@ -106,4 +116,4 @@ jobs:
           IOTA_SEED: ${{ secrets.IOTA_SEED }}
           IOTA_SEED: ${{ secrets.IOTA_SEED }}
         with:
         with:
           tag_name: ${{ matrix.package.name }}-v${{ env.PACKAGE_VERSION }}
           tag_name: ${{ matrix.package.name }}-v${{ env.PACKAGE_VERSION }}
-          comment: "[Test] Release ${{ matrix.package.name }} v${{ env.PACKAGE_VERSION }} [crates.io]"
+          comment: "Release ${{ matrix.package.name }} v${{ env.PACKAGE_VERSION }} [crates.io]"