mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
removed - name propery from release-build
This commit is contained in:
parent
08bf7bbd58
commit
54ff86c6ad
16
.github/workflows/release-build.yml
vendored
16
.github/workflows/release-build.yml
vendored
@ -21,13 +21,13 @@ jobs:
|
||||
env:
|
||||
RELEASE_VERSION: ${{ github.event.release.tag_name }}
|
||||
|
||||
- name: Replace Version in files
|
||||
# Replace Version in files
|
||||
- run: |
|
||||
sed -i "s/%{{SPOTUBE_VERSION}}%/$RELEASE_VERSION/" windows/runner/Runner.rc
|
||||
sed -i "s/%{{SPOTUBE_VERSION}}%/$RELEASE_VERSION/" choco-struct/tools/VERIFICATION.txt
|
||||
sed -i "s/%{{SPOTUBE_VERSION}}%/$RELEASE_VERSION/" choco-struct/spotube.nuspec
|
||||
|
||||
- name: Build Windows Executable
|
||||
# Build Windows Executable
|
||||
- uses: subosito/flutter-action@v2.2.0
|
||||
with:
|
||||
cache: true
|
||||
@ -40,33 +40,33 @@ jobs:
|
||||
dart pub global activate --source path build/flutter_distributor/packages/flutter_distributor
|
||||
flutter_distributor package --platform=windows --target=exe --skip-clean
|
||||
|
||||
- name: Create Chocolatey Package
|
||||
# setting the sha256 hash for new bundle
|
||||
# Create Chocolatey Package
|
||||
# setting the sha256 hash for new bundle
|
||||
- run: |
|
||||
Set-Variable -Name HASH -Value (Get-FileHash dist\$RELEASE_VERSION\spotube-$RELEASE_VERSION-windows.exe).Hash
|
||||
sed -i "s/%{{WIN_SHA256}}%/$HASH/" choco-struct/tools/VERIFICATION.txt
|
||||
make VERSION=$RELEASE_VERSION choco
|
||||
|
||||
- name: Rename the artifacts
|
||||
# Rename the artifacts
|
||||
- run: |
|
||||
Rename-Item -Path dist/$RELEASE_VERSION/spotube.$RELEASE_VERSION.nupkg -NewName Spotube-windows-x86_64.nupkg
|
||||
Rename-Item -Path dist/$RELEASE_VERSION/spotube-$RELEASE_VERSION-windows.exe Spotube-windows-x86_64-setup.exe
|
||||
|
||||
- name: Upload release binary
|
||||
# Upload release binary
|
||||
- uses: meeDamian/github-release@2.0
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tag: ${{ github.event.release.tag_name }}
|
||||
files: dist/$RELEASE_VERSION
|
||||
|
||||
- name: Publish to Chocolatey Repository
|
||||
# Publish to Chocolatey Repository
|
||||
- run: |
|
||||
choco apikey -k ${{ secrets.CHOCO_API_KEY }} -s https://push.chocolatey.org/
|
||||
echo 'published to community.chocolatey.org'
|
||||
|
||||
# choco push dist/$RELEASE_VERSION/spotube.$RELEASE_VERSION.nupkg
|
||||
|
||||
- name: Upload artifacts
|
||||
# Upload artifacts
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Spotube-Windows-Bundle
|
||||
|
Loading…
Reference in New Issue
Block a user