Skip to content

Commit

Permalink
ci: print version
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 committed Sep 17, 2023
1 parent 08a53ca commit 7bb5cd2
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 27 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-to-playstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
- name: Setup Fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.6"
ruby-version: "3.2"
bundler-cache: true
working-directory: android

Expand Down Expand Up @@ -174,7 +174,9 @@ jobs:
# Build and deploy with Fastlane (by default, to internal track) 🚀.
# Naturally, promote_to_production only deploys.
- name: Fastlane building
run: bundle exec fastlane ${{ needs.var.outputs.lane }}
# bundle exec fastlane ${{ needs.var.outputs.lane }}
run: |
bundle exec fastlane --version
env:
PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }}
BUILD_NUMBER: ${{ needs.var.outputs.dev_build_number }}
Expand Down
50 changes: 25 additions & 25 deletions .github/workflows/release-candidate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,28 +151,28 @@ jobs:
working-directory: android

# Build the application.
- name: Start building
run: |
flutter build -v apk --release --flavor dev
mv build/app/outputs/flutter-apk/app-dev-release.apk \
$GITHUB_WORKSPACE/pos_system.apk
- name: Get upload URL
id: get_release
run: |
release=$(curl -s \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H 'Accept: application/vnd.github.v3+json' \
https://api.github.com/repos/evan361425/flutter-pos-system/releases \
| jq -c '.[] | select( .name | contains("${{ needs.check-version.outputs.tag_version }}"))')
echo "::set-output name=upload_url::$(echo "$release" | jq -r '.upload_url')"
# Upload the build.
- name: Upload built package to release
id: upload_release_asset
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./pos_system.apk
asset_name: pos_system.dev.${{ needs.check-version.outputs.build_code }}.apk
asset_content_type: application/vnd.android.package-archive
# - name: Start building
# run: |
# flutter build -v apk --release --flavor dev
# mv build/app/outputs/flutter-apk/app-dev-release.apk \
# $GITHUB_WORKSPACE/pos_system.apk

# - name: Get upload URL
# id: get_release
# run: |
# release=$(curl -s \
# -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
# -H 'Accept: application/vnd.github.v3+json' \
# https://api.github.com/repos/evan361425/flutter-pos-system/releases \
# | jq -c '.[] | select( .name | contains("${{ needs.check-version.outputs.tag_version }}"))')
# echo "::set-output name=upload_url::$(echo "$release" | jq -r '.upload_url')"

# # Upload the build.
# - name: Upload built package to release
# id: upload_release_asset
# uses: shogo82148/actions-upload-release-asset@v1
# with:
# upload_url: ${{ steps.get_release.outputs.upload_url }}
# asset_path: ./pos_system.apk
# asset_name: pos_system.dev.${{ needs.check-version.outputs.build_code }}.apk
# asset_content_type: application/vnd.android.package-archive
56 changes: 56 additions & 0 deletions android/fastlane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
fastlane documentation
----

# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```sh
xcode-select --install
```

For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)

# Available Actions

## Android

### android test

```sh
[bundle exec] fastlane android test
```

Test locally

### android internal

```sh
[bundle exec] fastlane android internal
```

Submit a new Internal Build to Play Store

### android beta

```sh
[bundle exec] fastlane android beta
```

Submit a new Beta Build to Crashlytics Beta

### android promote_to_production

```sh
[bundle exec] fastlane android promote_to_production
```

Promote beta track to prod

----

This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.

More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).

The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
13 changes: 13 additions & 0 deletions android/fastlane/report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="fastlane.lanes">




<testcase classname="fastlane.lanes" name="0: default_platform" time="0.00047">

</testcase>

</testsuite>
</testsuites>

0 comments on commit 7bb5cd2

Please sign in to comment.