Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4810ff

Browse files
authored
add envs and publishPath, don't verify (tauri-apps#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).
1 parent 1800987 commit c4810ff

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/release-cargo.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
publish:
1313
runs-on: ubuntu-latest
14+
env:
15+
TAURI_DIST_DIR: tauri/test/fixture/dist
16+
TAURI_DIR: ../test/fixture/src-tauri
1417
strategy:
1518
fail-fast: false
1619
matrix:
@@ -26,12 +29,15 @@ jobs:
2629
- name: tauri-api
2730
registryName: tauri-api
2831
path: tauri-api
32+
publishPath: /target/package
2933
- name: tauri-updater
3034
registryName: tauri-updater
3135
path: tauri-updater
36+
publishPath: /target/package
3237
- name: tauri-utils
3338
registryName: tauri-utils
3439
path: tauri-utils
40+
publishPath: /target/package
3541
steps:
3642
- uses: actions/checkout@v2
3743
with:
@@ -55,7 +61,7 @@ jobs:
5561
run: |
5662
echo "package dir:"
5763
ls
58-
cargo package
64+
cargo package --no-verify
5965
echo "We will publish:" $PACKAGE_VERSION
6066
echo "This is current latest:" $PUBLISHED_VERSION
6167
echo "post package dir:"
@@ -67,13 +73,17 @@ jobs:
6773
run: |
6874
cargo install cargo-audit
6975
echo "# Cargo Audit" | tee -a ${{runner.workspace }}/notes.md
76+
echo "```" >> ${{runner.workspace }}/notes.md
7077
cargo audit 2>&1 | tee -a ${{runner.workspace }}/notes.md
78+
echo "```" >> ${{runner.workspace }}/notes.md
7179
- name: Publish ${{ matrix.package.name }}
7280
if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
7381
working-directory: ${{ matrix.package.path }}
7482
run: |
7583
echo "# Cargo Publish" | tee -a ${{runner.workspace }}/notes.md
76-
cargo publish 2>&1 | tee -a ${{runner.workspace }}/notes.md
84+
echo "```" >> ${{runner.workspace }}/notes.md
85+
cargo publish --no-verify 2>&1 | tee -a ${{runner.workspace }}/notes.md
86+
echo "```" >> ${{runner.workspace }}/notes.md
7787
- name: Create Release
7888
id: create_crate_release
7989
if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION
@@ -106,4 +116,4 @@ jobs:
106116
IOTA_SEED: ${{ secrets.IOTA_SEED }}
107117
with:
108118
tag_name: ${{ matrix.package.name }}-v${{ env.PACKAGE_VERSION }}
109-
comment: "[Test] Release ${{ matrix.package.name }} v${{ env.PACKAGE_VERSION }} [crates.io]"
119+
comment: "Release ${{ matrix.package.name }} v${{ env.PACKAGE_VERSION }} [crates.io]"

0 commit comments

Comments
 (0)