mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
Added build number to linux builds
This commit is contained in:
parent
554a514ac5
commit
f63b735424
1 changed files with 11 additions and 2 deletions
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue