From be353e91224669ed3cb9c78a2dd20b39c865d4b5 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 21 Jul 2024 15:28:38 +0200 Subject: [PATCH] fix: reference secret in env As per https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#accessing-your-secrets --- .github/workflows/flutter-release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/flutter-release.yml b/.github/workflows/flutter-release.yml index 9e67dd4..fcb8783 100644 --- a/.github/workflows/flutter-release.yml +++ b/.github/workflows/flutter-release.yml @@ -36,22 +36,28 @@ jobs: run: gpg --version - name: Decrypting Keystore file + env: + GPG_PASS: ${{ secrets.GPG_PASS }} run: | cd android/app keyFile=key.jks - gpg -d --passphrase "${{ secrets.GPG_PASS }}" --batch $keyFile.asc > $keyFile + gpg -d --passphrase "$GPG_PASS" --batch $keyFile.asc > $keyFile - name: Decrypting key.properties file + env: + GPG_PASS: ${{ secrets.GPG_PASS }} run: | cd ../ keyPropFile=key.properties - gpg -d --passphrase "${{ secrets.GPG_PASS }}" --batch $keyPropFile.asc > $keyPropFile + gpg -d --passphrase "$GPG_PASS" --batch $keyPropFile.asc > $keyPropFile - name: Decrypting Fastlane Secret file + env: + GPG_PASS: ${{ secrets.GPG_PASS }} run: | pwd cd android file=fastlane-secret.json - gpg -d --passphrase "${{ secrets.GPG_PASS }}" --batch $file.asc > $file + gpg -d --passphrase "$GPG_PASS" --batch $file.asc > $file - name: Testing Fastlane installation run: | @@ -86,4 +92,4 @@ jobs: # run: | # pwd # cd android - # bundle exec fastlane production_appbundle \ No newline at end of file + # bundle exec fastlane production_appbundle