mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45: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
|
# Create Chocolatey Package
|
||||||
# setting the sha256 hash for new bundle
|
# setting the sha256 hash for new bundle
|
||||||
- run: |
|
- 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
|
sed -i "s/%{{WIN_SHA256}}%/$HASH/" choco-struct/tools/VERIFICATION.txt
|
||||||
make VERSION=${{ steps.tag.outputs.tag }} choco
|
make VERSION=${{ steps.tag.outputs.tag }} choco
|
||||||
|
|
||||||
# Rename the artifacts
|
# Rename the artifacts
|
||||||
- run: |
|
- run: |
|
||||||
Rename-Item -Path dist/${{ steps.tag.outputs.tag }}/spotube.${{ steps.tag.outputs.tag }}.nupkg -NewName Spotube-windows-x86_64.nupkg
|
mv dist/**/spotube.${{ steps.tag.outputs.tag }}.nupkg dist/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-*-windows-setup.exe dist/Spotube-windows-x86_64-setup.exe
|
||||||
|
|
||||||
# Publish to Chocolatey Repository
|
# Publish to Chocolatey Repository
|
||||||
- run: |
|
- run: |
|
||||||
@ -63,7 +63,7 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Spotube-Windows-Bundle
|
name: Spotube-Windows-Bundle
|
||||||
path: dist/${{ steps.tag.outputs.tag }}
|
path: dist/*.{exe,nupkg}
|
||||||
|
|
||||||
publish_macos:
|
publish_macos:
|
||||||
runs-on: macos-11
|
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
|
dart build/flutter_distributor/packages/flutter_distributor/bin/main.dart package --platform=linux --targets=deb,appimage --skip-clean
|
||||||
make tar
|
make tar
|
||||||
- run: |
|
- run: |
|
||||||
mv build/Spotube-linux-x86_64.tar.xz dist/${{ steps.tag.outputs.tag }}
|
mv build/Spotube-linux-x86_64.tar.xz dist/
|
||||||
mv dist/${{ steps.tag.outputs.tag }}/spotube-*-linux.deb dist/${{ steps.tag.outputs.tag }}/Spotube-linux-x86_64.deb
|
mv dist/**/spotube-*-linux.deb dist/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 dist/**/spotube-*-linux.AppImage dist/Spotube-linux-x86_64.AppImage
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Spotube-Linux-Bundle
|
name: Spotube-Linux-Bundle
|
||||||
path: dist/${{ steps.tag.outputs.tag }}
|
path: dist/*.{tar.xz,deb,AppImage}
|
||||||
|
|
||||||
publish_android:
|
publish_android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -167,11 +167,11 @@ jobs:
|
|||||||
cd build/flutter_distributor && melos bootstrap && cd ../..
|
cd build/flutter_distributor && melos bootstrap && cd ../..
|
||||||
dart build/flutter_distributor/packages/flutter_distributor/bin/main.dart package --platform=android --targets=apk --skip-clean
|
dart build/flutter_distributor/packages/flutter_distributor/bin/main.dart package --platform=android --targets=apk --skip-clean
|
||||||
- run: |
|
- 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
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Spotube-Android-Bundle
|
name: Spotube-Android-Bundle
|
||||||
path: dist/${{ steps.tag.outputs.tag }}
|
path: dist/*.apk
|
||||||
|
|
||||||
update_release:
|
update_release:
|
||||||
needs:
|
needs:
|
||||||
|
Loading…
Reference in New Issue
Block a user