Skip to content

chore: bump version to 1.1.0 #28

chore: bump version to 1.1.0

chore: bump version to 1.1.0 #28

Workflow file for this run

name: Build Release
on:
push:
tags:
- "v*.*.*"
jobs:
build-windows:
runs-on: windows-latest
permissions:
contents: write
name: Build Flutter App Windows
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Define Artifact Paths
id: define-artifact-paths
run: |
$runner="build/windows/x64/runner"
$artifacts="$runner/Artifacts"
$build="$runner/Release/"
$artifactName="AndroidSideloader-${{ github.ref_name }}"
$archiveName="$artifactName-Windows-Portable.zip"
$archive="$artifacts/$archiveName"
$installerName="$artifactName-Windows-Installer.exe"
$installer="$artifacts/$installerName"
echo "BUILD_DIR_PATH=$build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "ARCHIVE_NAME=$archiveName" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "ARCHIVE_PATH=$archive" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "INSTALLER_NAME=$installerName" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "INSTALLER_PATH=$installer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Extract Release Notes
id: extract_changelog
run: |
$ReleaseNotes = & "scripts/get-release-notes.ps1" -VersionName ${{ github.ref_name }}
if ($LASTEXITCODE -ne 0) {
Write-Error "Failed to create ReleaseNotes.md"
exit 1
}
$ReleaseNotes | Out-File -FilePath "./ReleaseNotes.md" -Encoding utf8
Write-Output "Release Notes:"
Get-Content -Path "./ReleaseNotes.md"
- name: Setup Flutter
uses: subosito/[email protected]
with:
channel: stable
flutter-version-file: pubspec.yaml
cache: true
- name: Install Dependencies
run: flutter pub get
- name: Build for Windows
run: flutter build windows
- name: Compile .ISS to .EXE Installer
uses: Minionguyjpro/[email protected]
with:
path: installer.iss
options: /O+ /DMyAppVersion="${{ github.ref_name }}"
- name: Compress Build Directory
run: |
Compress-Archive -Path "${{ env.BUILD_DIR_PATH }}\*" -DestinationPath "${{ env.ARCHIVE_PATH }}"
- name: Upload Build Files
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARCHIVE_NAME }}
path: ${{ env.ARCHIVE_PATH }}
- name: Upload Installer Executable as Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.INSTALLER_NAME }}
path: ${{ env.INSTALLER_PATH }}
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
bodyFile: "ReleaseNotes.md"
replacesArtifacts: true
prerelease: false
artifactErrorsFailBuild: true
artifacts: "${{ env.ARCHIVE_PATH }},${{ env.INSTALLER_PATH }}"
build-macos:
runs-on: macos-latest
permissions:
contents: write
name: Build Flutter App macOS
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Define Artifact Paths
id: define-artifact-paths
run: |
ARTIFACT_DIR=build/macos/Build/Products/Release
ARCHIVE_NAME="${{ github.ref_name }}-macOS.zip"
echo "ARTIFACT_DIR=$ARTIFACT_DIR" >> $GITHUB_ENV
echo "ARCHIVE_NAME=$ARCHIVE_NAME" >> $GITHUB_ENV
- name: Setup Flutter
uses: subosito/[email protected]
with:
channel: stable
flutter-version-file: pubspec.yaml
cache: true
- name: Install Dependencies
run: flutter pub get
- name: Build macOS App
run: flutter build macos --release
- name: Package macOS Build
run: |
cd build/macos/Build/Products/Release
zip -r "Android Sideloader.zip" "Android Sideloader.app/"
- name: Upload Build Files
uses: actions/upload-artifact@v4
with:
name: "Android Sideloader.app"
path: "build/macos/Build/Products/Release/Android Sideloader.zip"