mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-07-01 20:30:41 +00:00
ci: debug workflow.
This commit is contained in:
parent
589151a77d
commit
770d246787
2
.github/workflows/dotnet.yml
vendored
2
.github/workflows/dotnet.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
./publish.sh
|
./publish.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.date.outputs.date }}
|
PUBLISH_VERSION: ${{ steps.date.outputs.date }}
|
||||||
- name: ls
|
- name: ls
|
||||||
run: ls -a
|
run: ls -a
|
||||||
# - name: Upload Release
|
# - name: Upload Release
|
||||||
|
@ -1,23 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
dotnet publish -r "linux-x64" -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true || exit 1
|
Platforms=('win-x64' 'linux-x64' 'osx-x64')
|
||||||
cat /home/runner/work/ZonyLrcToolsX/ZonyLrcToolsX/src/ZonyLrcTools.Cli/obj/Release/net6.0/linux-x64/ZonyLrcTools.Cli.AssemblyInfo.cs
|
|
||||||
# Platforms=('win-x64' 'linux-x64' 'osx-x64')
|
|
||||||
|
|
||||||
# if ! [ -d './TempFiles' ];
|
if ! [ -d './TempFiles' ];
|
||||||
# then
|
then
|
||||||
# mkdir ./TempFiles
|
mkdir ./TempFiles
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# rm -rf ./TempFiles/*
|
rm -rf ./TempFiles/*
|
||||||
|
|
||||||
# for platform in "${Platforms[@]}"
|
for platform in "${Platforms[@]}"
|
||||||
# do
|
do
|
||||||
# dotnet publish -r "$platform" -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true
|
dotnet publish -r "$platform" -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true || exit 1
|
||||||
|
|
||||||
# ls -a
|
cd ./bin/Release/net6.0/"$platform"/publish/ || exit 1
|
||||||
# # cd ./bin/Release/net6.0/"$platform"/publish/ || exit
|
zip -r ./ZonyLrcTools_"$platform"_"${PUBLISH_VERSION}".zip ./ || exit 1
|
||||||
# # zip -r ./ZonyLrcTools_"$platform"_"${VERSION}".zip ./
|
cd ../../../../../ || exit 1
|
||||||
# # cd ../../../../../
|
|
||||||
|
|
||||||
# # mv ./bin/Release/net6.0/"$platform"/publish/ZonyLrcTools_"$platform"_"$Version".zip ./TempFiles
|
mv ./bin/Release/net6.0/"$platform"/publish/ZonyLrcTools_"$platform"_"$PUBLISH_VERSION".zip ./TempFiles
|
||||||
# done
|
done
|
Loading…
x
Reference in New Issue
Block a user