Skip to content

Commit

Permalink
feat: update build
Browse files Browse the repository at this point in the history
  • Loading branch information
astubenbord committed Oct 26, 2023
1 parent 0f7e039 commit 1bd5b21
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .github/actions/setup-android-signing-config/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ inputs:
keystore-store-password:
description: 'key.properties storePassword'
required: true
output-directory:
description: The directory of the project
required: true

runs:
using: "composite"
steps:
Expand All @@ -26,5 +30,7 @@ runs:
echo "keyAlias=${{ inputs.keystore-key-alias }}" >> key.properties
echo "storePassword=${{ inputs.keystore-store-password }}" >> key.properties
echo "keyPassword=${{ inputs.keystore-key-password }}" >> key.properties
cp key.properties ${{ inputs.output-directory }}/key.properties
cp ${{ inputs.keystore-key-alias }}-keystore.jks ${{ inputs.output-directory }}/${{ inputs.keystore-key-alias }}-keystore.jks
shell: bash
working-directory: android
20 changes: 10 additions & 10 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ jobs:
run: |
mkdir -p /tmp/build
cp -R . /tmp/build
echo "PROJECT_ROOT=/tmp/build" >> $GITHUB_ENV
- name: Set FLUTTER_ROOT environment variable and build dir
run: echo "FLUTTER_ROOT=$(pwd)/flutter/bin" >> $GITHUB_ENV
working-directory: $PROJECT_ROOT
run: echo "FLUTTER_ROOT=/tmp/build/flutter/bin" >> $GITHUB_ENV

- run: $FLUTTER_ROOT/flutter doctor -v

Expand All @@ -51,21 +49,23 @@ jobs:
keystore-store-password: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
release-keystore: ${{ secrets.RELEASE_KEYSTORE }}
release-keystore-passphrase: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
output-directory: /tmp/build/android

- name: Get packages and run codegen
run: |
bash ./scripts/install_dependencies_with_submodule.sh
bash ./scripts/update_changelogs.sh
working-directory: $PROJECT_ROOT
bash /tmp/build/scripts/install_dependencies_with_submodule.sh
bash /tmp/build/scripts/update_changelogs.sh
- name: Setup Fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.6"
bundler-cache: true
working-directory: $PROJECT_ROOT/android

- run: bundle exec fastlane github branch:${{ steps.extract_branch.outputs.branch }} is_draft:${{ github.event.inputs.is_draft }}
working-directory: /tmp/build/android

- name: Build and publish GitHub release
run: |
cd /tmp/build/android
bundle exec fastlane github branch:${{ steps.extract_branch.outputs.branch }} is_draft:${{ github.event.inputs.is_draft }}
env:
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
working-directory: $PROJECT_ROOT/android

0 comments on commit 1bd5b21

Please sign in to comment.