mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-17 04:12:34 -06:00
feat: update build
This commit is contained in:
@@ -16,6 +16,10 @@ inputs:
|
|||||||
keystore-store-password:
|
keystore-store-password:
|
||||||
description: 'key.properties storePassword'
|
description: 'key.properties storePassword'
|
||||||
required: true
|
required: true
|
||||||
|
output-directory:
|
||||||
|
description: The directory of the project
|
||||||
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
@@ -26,5 +30,7 @@ runs:
|
|||||||
echo "keyAlias=${{ inputs.keystore-key-alias }}" >> key.properties
|
echo "keyAlias=${{ inputs.keystore-key-alias }}" >> key.properties
|
||||||
echo "storePassword=${{ inputs.keystore-store-password }}" >> key.properties
|
echo "storePassword=${{ inputs.keystore-store-password }}" >> key.properties
|
||||||
echo "keyPassword=${{ inputs.keystore-key-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
|
shell: bash
|
||||||
working-directory: android
|
working-directory: android
|
||||||
20
.github/workflows/create-github-release.yml
vendored
20
.github/workflows/create-github-release.yml
vendored
@@ -35,11 +35,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/build
|
mkdir -p /tmp/build
|
||||||
cp -R . /tmp/build
|
cp -R . /tmp/build
|
||||||
echo "PROJECT_ROOT=/tmp/build" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Set FLUTTER_ROOT environment variable and build dir
|
- name: Set FLUTTER_ROOT environment variable and build dir
|
||||||
run: echo "FLUTTER_ROOT=$(pwd)/flutter/bin" >> $GITHUB_ENV
|
run: echo "FLUTTER_ROOT=/tmp/build/flutter/bin" >> $GITHUB_ENV
|
||||||
working-directory: $PROJECT_ROOT
|
|
||||||
|
|
||||||
- run: $FLUTTER_ROOT/flutter doctor -v
|
- run: $FLUTTER_ROOT/flutter doctor -v
|
||||||
|
|
||||||
@@ -51,21 +49,23 @@ jobs:
|
|||||||
keystore-store-password: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
|
keystore-store-password: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
|
||||||
release-keystore: ${{ secrets.RELEASE_KEYSTORE }}
|
release-keystore: ${{ secrets.RELEASE_KEYSTORE }}
|
||||||
release-keystore-passphrase: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
|
release-keystore-passphrase: ${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}
|
||||||
|
output-directory: /tmp/build/android
|
||||||
|
|
||||||
- name: Get packages and run codegen
|
- name: Get packages and run codegen
|
||||||
run: |
|
run: |
|
||||||
bash ./scripts/install_dependencies_with_submodule.sh
|
bash /tmp/build/scripts/install_dependencies_with_submodule.sh
|
||||||
bash ./scripts/update_changelogs.sh
|
bash /tmp/build/scripts/update_changelogs.sh
|
||||||
working-directory: $PROJECT_ROOT
|
|
||||||
|
|
||||||
- name: Setup Fastlane
|
- name: Setup Fastlane
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: "2.6"
|
ruby-version: "2.6"
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
working-directory: $PROJECT_ROOT/android
|
working-directory: /tmp/build/android
|
||||||
|
|
||||||
- run: bundle exec fastlane github branch:${{ steps.extract_branch.outputs.branch }} is_draft:${{ github.event.inputs.is_draft }}
|
- 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:
|
env:
|
||||||
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
|
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
|
||||||
working-directory: $PROJECT_ROOT/android
|
|
||||||
|
|||||||
Reference in New Issue
Block a user