Only publish when tagging
This commit is contained in:
3
.github/workflows/Nuget-publishing.yml
vendored
3
.github/workflows/Nuget-publishing.yml
vendored
@@ -428,14 +428,13 @@ jobs:
|
||||
with:
|
||||
path: ${{ github.workspace }}/bindings/dotnet/UnicornEngine/bin/Release/UnicornEngine.Unicorn.*.nupkg
|
||||
|
||||
# We often exceed limit so just release on tags
|
||||
- name: 📦 Publish to Github Packages
|
||||
if: startsWith(github.ref, 'refs/tags')
|
||||
working-directory: bindings/dotnet/UnicornEngine
|
||||
run: dotnet nuget push "bin/Release/UnicornEngine.Unicorn.*.nupkg" --source "github" --api-key "${{ secrets.GHPR_TOKEN }}"
|
||||
|
||||
# Nuget is more tolerate so let's release every commit
|
||||
- name: 📦 Publish Nuget package
|
||||
if: startsWith(github.ref, 'refs/tags')
|
||||
working-directory: bindings/dotnet/UnicornEngine
|
||||
run: dotnet nuget push "bin/Release/UnicornEngine.Unicorn.*.nupkg" -k "$NUGET_AUTH_TOKEN" -s https://api.nuget.org/v3/index.json
|
||||
env:
|
||||
|
||||
8
.github/workflows/PyPI-publishing.yml
vendored
8
.github/workflows/PyPI-publishing.yml
vendored
@@ -34,6 +34,12 @@ jobs:
|
||||
python-ver: '3.8',
|
||||
name: 'win32'
|
||||
}
|
||||
- {
|
||||
os: ubuntu-latest,
|
||||
arch: x64,
|
||||
python-ver: '3.8',
|
||||
name: 'musllinux'
|
||||
}
|
||||
- {
|
||||
os: ubuntu-latest,
|
||||
arch: x64,
|
||||
@@ -129,6 +135,8 @@ jobs:
|
||||
docker run --rm -v `pwd`/:/work dockcross/manylinux2014-x64 > ./dockcross
|
||||
chmod +x ./dockcross
|
||||
./dockcross bindings/python/build_wheel.sh
|
||||
elif [ ${{ matrix.config.name }} == 'musllinux' ]; then
|
||||
docker run --rm -v `pwd`:/work -w /work python:3.7-alpine sh /work/bindings/python/musl_wheel.sh
|
||||
elif [ ${{ matrix.config.name }} == 'sdist' ]; then
|
||||
cd bindings/python && python setup.py sdist
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user