removed - name propery from release-build

This commit is contained in:
Kingkor Roy Tirtho 2022-04-26 18:15:57 +06:00
parent 08bf7bbd58
commit 54ff86c6ad

View File

@ -21,13 +21,13 @@ jobs:
env: env:
RELEASE_VERSION: ${{ github.event.release.tag_name }} RELEASE_VERSION: ${{ github.event.release.tag_name }}
- name: Replace Version in files # Replace Version in files
- run: | - run: |
sed -i "s/%{{SPOTUBE_VERSION}}%/$RELEASE_VERSION/" windows/runner/Runner.rc 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/tools/VERIFICATION.txt
sed -i "s/%{{SPOTUBE_VERSION}}%/$RELEASE_VERSION/" choco-struct/spotube.nuspec 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 - uses: subosito/flutter-action@v2.2.0
with: with:
cache: true cache: true
@ -40,33 +40,33 @@ jobs:
dart pub global activate --source path build/flutter_distributor/packages/flutter_distributor dart pub global activate --source path build/flutter_distributor/packages/flutter_distributor
flutter_distributor package --platform=windows --target=exe --skip-clean flutter_distributor package --platform=windows --target=exe --skip-clean
- name: 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\$RELEASE_VERSION\spotube-$RELEASE_VERSION-windows.exe).Hash 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 sed -i "s/%{{WIN_SHA256}}%/$HASH/" choco-struct/tools/VERIFICATION.txt
make VERSION=$RELEASE_VERSION choco make VERSION=$RELEASE_VERSION choco
- name: Rename the artifacts # Rename the artifacts
- run: | - 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.nupkg -NewName Spotube-windows-x86_64.nupkg
Rename-Item -Path dist/$RELEASE_VERSION/spotube-$RELEASE_VERSION-windows.exe Spotube-windows-x86_64-setup.exe 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 - uses: meeDamian/github-release@2.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }} tag: ${{ github.event.release.tag_name }}
files: dist/$RELEASE_VERSION files: dist/$RELEASE_VERSION
- name: Publish to Chocolatey Repository # Publish to Chocolatey Repository
- run: | - run: |
choco apikey -k ${{ secrets.CHOCO_API_KEY }} -s https://push.chocolatey.org/ choco apikey -k ${{ secrets.CHOCO_API_KEY }} -s https://push.chocolatey.org/
echo 'published to community.chocolatey.org' echo 'published to community.chocolatey.org'
# choco push dist/$RELEASE_VERSION/spotube.$RELEASE_VERSION.nupkg # choco push dist/$RELEASE_VERSION/spotube.$RELEASE_VERSION.nupkg
- name: Upload artifacts # Upload artifacts
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: Spotube-Windows-Bundle name: Spotube-Windows-Bundle