Skip to content

Commit

Permalink
fix: Update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
astubenbord committed Nov 8, 2023
1 parent 5a535df commit 2f9830d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
name: "Deploy to Stores and create GitHub release"
runs-on: ubuntu-latest
steps:

- name: Create build directory
run: mkdir -p /tmp/build

- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
Expand All @@ -41,6 +43,11 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Copy files to build directory
run: |
mkdir -p /tmp/build
cp -R . /tmp/build
- name: Set FLUTTER_ROOT environment variable
run: echo "FLUTTER_ROOT=$(pwd)/flutter/bin" >> $GITHUB_ENV

Expand All @@ -54,26 +61,26 @@ 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 install_dependencies_with_submodule.sh
bash update_changelogs.sh
working-directory: scripts
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: android
working-directory: /tmp/build/android

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

0 comments on commit 2f9830d

Please sign in to comment.