mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
[CD] paths adjusted to support build number
This commit is contained in:
parent
0fd623f63e
commit
cac5e74614
20
.github/workflows/release-build.yml
vendored
20
.github/workflows/release-build.yml
vendored
@ -43,14 +43,14 @@ jobs:
|
||||
# Create Chocolatey Package
|
||||
# setting the sha256 hash for new bundle
|
||||
- run: |
|
||||
Set-Variable -Name HASH -Value (Get-FileHash dist\${{ steps.tag.outputs.tag }}\spotube-${{ steps.tag.outputs.tag }}+${{ steps.tag.outputs.tag }}-windows-setup.exe).Hash
|
||||
Set-Variable -Name HASH -Value (Get-FileHash dist\**\spotube-*-windows-setup.exe).Hash
|
||||
sed -i "s/%{{WIN_SHA256}}%/$HASH/" choco-struct/tools/VERIFICATION.txt
|
||||
make VERSION=${{ steps.tag.outputs.tag }} choco
|
||||
|
||||
# Rename the artifacts
|
||||
- run: |
|
||||
Rename-Item -Path dist/${{ steps.tag.outputs.tag }}/spotube.${{ steps.tag.outputs.tag }}.nupkg -NewName Spotube-windows-x86_64.nupkg
|
||||
Rename-Item -Path dist/${{ steps.tag.outputs.tag }}/spotube-*-windows-setup.exe Spotube-windows-x86_64-setup.exe
|
||||
mv dist/**/spotube.${{ steps.tag.outputs.tag }}.nupkg dist/Spotube-windows-x86_64.nupkg
|
||||
mv dist/**/spotube-*-windows-setup.exe dist/Spotube-windows-x86_64-setup.exe
|
||||
|
||||
# Publish to Chocolatey Repository
|
||||
- run: |
|
||||
@ -63,7 +63,7 @@ jobs:
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Spotube-Windows-Bundle
|
||||
path: dist/${{ steps.tag.outputs.tag }}
|
||||
path: dist/*.{exe,nupkg}
|
||||
|
||||
publish_macos:
|
||||
runs-on: macos-11
|
||||
@ -132,13 +132,13 @@ jobs:
|
||||
dart build/flutter_distributor/packages/flutter_distributor/bin/main.dart package --platform=linux --targets=deb,appimage --skip-clean
|
||||
make tar
|
||||
- run: |
|
||||
mv build/Spotube-linux-x86_64.tar.xz dist/${{ steps.tag.outputs.tag }}
|
||||
mv dist/${{ steps.tag.outputs.tag }}/spotube-*-linux.deb dist/${{ steps.tag.outputs.tag }}/Spotube-linux-x86_64.deb
|
||||
mv dist/${{ steps.tag.outputs.tag }}/spotube-*-linux.AppImage dist/${{ steps.tag.outputs.tag }}/Spotube-linux-x86_64.AppImage
|
||||
mv build/Spotube-linux-x86_64.tar.xz dist/
|
||||
mv dist/**/spotube-*-linux.deb dist/Spotube-linux-x86_64.deb
|
||||
mv dist/**/spotube-*-linux.AppImage dist/Spotube-linux-x86_64.AppImage
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Spotube-Linux-Bundle
|
||||
path: dist/${{ steps.tag.outputs.tag }}
|
||||
path: dist/*.{tar.xz,deb,AppImage}
|
||||
|
||||
publish_android:
|
||||
runs-on: ubuntu-latest
|
||||
@ -167,11 +167,11 @@ jobs:
|
||||
cd build/flutter_distributor && melos bootstrap && cd ../..
|
||||
dart build/flutter_distributor/packages/flutter_distributor/bin/main.dart package --platform=android --targets=apk --skip-clean
|
||||
- run: |
|
||||
mv dist/${{ steps.tag.outputs.tag }}/spotube-*-android.apk dist/${{ steps.tag.outputs.tag }}/Spotube-android-all-arch.apk
|
||||
mv dist/**/spotube-*-android.apk dist/Spotube-android-all-arch.apk
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Spotube-Android-Bundle
|
||||
path: dist/${{ steps.tag.outputs.tag }}
|
||||
path: dist/*.apk
|
||||
|
||||
update_release:
|
||||
needs:
|
||||
|
Loading…
Reference in New Issue
Block a user