bump version for fdroid #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release and build on tag | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build-ubuntu: | |
name: "Build web, android, & linux" | |
runs-on: ubuntu-latest | |
steps: | |
# Set up repo and java | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
distribution: "temurin" | |
# And begin the flutter | |
- name: Install dependencies | |
run: flutter pub get | |
# Build web | |
- name: Build Web | |
run: flutter build web --web-renderer html | |
# Create a zip file for the web build | |
- name: Create web build zip | |
run: | | |
sudo apt-get install -y zip | |
zip -r vup-chat-web.zip build/web | |
# Build linux | |
- name: Build Linux | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y ninja-build libgtk-3-dev libnotify-dev | |
flutter build linux | |
cd build/linux/x64/release | |
zip -r ../../../../vup-chat-linux.zip bundle/ | |
cd ../../../.. | |
# Bulid android SIGNED | |
- name: 🔧 Build APK | |
env: | |
KEY_JKS: ${{ secrets.KEY_JKS }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
ALIAS_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
run: | | |
base64 -d <<< $KEY_JKS > ./android/app/release-key.jks | |
./flutterw build apk --release -v | |
mkdir -p ./outputs | |
cp build/app/outputs/apk/release/*.apk ./outputs/ | |
# Create release | |
- name: Create a release with the APK. | |
uses: ncipollo/release-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: "✏️ Generate release changelog" | |
uses: heinrichreimer/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# Now upload those assets | |
- name: Upload release assets | |
uses: alexellis/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
asset_paths: '["./vup-chat-web.zip", "./outputs/*", "vup-chat-linux.zip"]' | |
# TODO: Add Windows build | |
# TODO: Add MacOS & iOS bilds |