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
6a4435eb0d
commit
c2d8ee4341
6
.github/workflows/dotnet.yml
vendored
6
.github/workflows/dotnet.yml
vendored
@ -19,8 +19,8 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
# - name: Restore dependencies
|
- name: Restore dependencies
|
||||||
# run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Publish
|
- name: Publish
|
||||||
working-directory: ./src/ZonyLrcTools.Cli
|
working-directory: ./src/ZonyLrcTools.Cli
|
||||||
run: |
|
run: |
|
||||||
@ -29,6 +29,8 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.date.outputs.date }}
|
VERSION: ${{ steps.date.outputs.date }}
|
||||||
|
- name: ls
|
||||||
|
run: ls -a
|
||||||
# - name: Upload Release
|
# - name: Upload Release
|
||||||
# uses: ncipollo/release-action@v1
|
# uses: ncipollo/release-action@v1
|
||||||
# with:
|
# with:
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "${VERSION}"
|
echo "${VERSION}"
|
||||||
# Platforms=('win-x64' 'linux-x64' 'osx-x64')
|
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
|
||||||
|
|
||||||
# cd ./bin/Release/net6.0/"$platform"/publish/ || exit
|
cd ./bin/Release/net6.0/"$platform"/publish/ || exit
|
||||||
# zip -r ./ZonyLrcTools_"$platform"_"${steps.date.outputs.date}".zip ./
|
zip -r ./ZonyLrcTools_"$platform"_"${VERSION}".zip ./
|
||||||
# cd ../../../../../
|
cd ../../../../../
|
||||||
|
|
||||||
# mv ./bin/Release/net6.0/"$platform"/publish/ZonyLrcTools_"$platform"_"$Version".zip ./TempFiles
|
mv ./bin/Release/net6.0/"$platform"/publish/ZonyLrcTools_"$platform"_"$Version".zip ./TempFiles
|
||||||
# done
|
done
|
Loading…
x
Reference in New Issue
Block a user