Update build.yml

This commit is contained in:
0xd4d 2020-12-12 15:27:59 +01:00
parent 03e9642462
commit 2945a43980
1 changed files with 10 additions and 10 deletions

View File

@ -481,16 +481,16 @@ jobs:
dotnet nuget push "$file" --api-key "${{secrets.NUGET_APIKEY}}" --source https://api.nuget.org/v3/index.json dotnet nuget push "$file" --api-key "${{secrets.NUGET_APIKEY}}" --source https://api.nuget.org/v3/index.json
done done
- name: Upload to crates.io # - name: Upload to crates.io
if: startsWith(github.ref, 'refs/tags/') # if: startsWith(github.ref, 'refs/tags/')
shell: bash # shell: bash
run: | # run: |
git clean -xdf # git clean -xdf
git checkout . # git checkout .
cd src/rust/iced-x86 # cd src/rust/iced-x86
cargo login --color always -- "${{secrets.CRATES_IO_TOKEN}}" # cargo login --color always -- "${{secrets.CRATES_IO_TOKEN}}"
# --no-verify: we've tested building everything already # # --no-verify: we've tested building everything already
cargo publish --color always --no-verify # cargo publish --color always --no-verify
- name: Upload to pypi.org - name: Upload to pypi.org
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')