Added build number to linux builds

This commit is contained in:
PartyDonut 2024-10-16 15:46:03 +02:00
parent 554a514ac5
commit f63b735424

View file

@ -223,12 +223,21 @@ jobs:
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev
- name: Build Linux app
run: flutter build linux
run: |
APP_NAME=$(grep '^name:' pubspec.yaml | cut -d ':' -f2 | tr -d ' ')
VERSION_NAME=$(grep '^version:' pubspec.yaml | cut -d ':' -f2 | cut -d '+' -f1 | tr -d ' ')
echo "APP_NAME=$APP_NAME" >> $GITHUB_ENV
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
# Build APK
flutter build linux --release \
--build-name=$VERSION_NAME \
--build-number=${{ github.run_number }}
- name: Archive Linux artifact
uses: actions/upload-artifact@v4
with:
name: linux
name: ${{ env.APP_NAME }}-Linux-${{ env.VERSION_NAME }}
path: build/linux/x64/release/bundle
build-web: