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:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.11'
channel: 'stable'
cache: true
- name: Get subtracks version
run: echo "SUBTRACKS_VERSION=$(yq '.version' pubspec.yaml)" >> $GITHUB_ENV
- run: cp .env.example .env
- run: echo ${SUBTRACKS_VERSION}
- run: flutter pub get
- run: flutter build apk
# - uses: subosito/flutter-action@v2
# with:
# flutter-version: '3.7.11'
# channel: 'stable'
# cache: true
- 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
# - 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