get version?

This commit is contained in:
austinried 2023-04-28 11:14:35 +09:00
parent aae58bc5ee
commit 7562d93113

View File

@ -11,21 +11,26 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: subosito/flutter-action@v2 - name: Get subtracks version
with: run: echo "SUBTRACKS_VERSION=$(yq '.version' pubspec.yaml)" >> $GITHUB_ENV
flutter-version: '3.7.11'
channel: 'stable'
cache: true
- run: cp .env.example .env
- run: flutter pub get - run: echo ${SUBTRACKS_VERSION}
- run: flutter build apk
- run: > # - uses: subosito/flutter-action@v2
mv build/app/outputs/flutter-apk/app-release.apk # with:
subtracks-$(git rev-parse --short HEAD).apk # flutter-version: '3.7.11'
- uses: actions/upload-artifact@v3 # channel: 'stable'
with: # cache: true
name: subtracks-testing
path: subtracks-*.apk # - run: cp .env.example .env
# - run: flutter pub get
# - run: flutter build apk
# - run: >
# mv build/app/outputs/flutter-apk/app-release.apk
# subtracks-$(git rev-parse --short HEAD).apk
# - uses: actions/upload-artifact@v3
# with:
# name: subtracks-testing
# path: subtracks-*.apk