Skip to content

Commit

Permalink
added 1passowrd cli to eas-build yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RevanToma committed Sep 18, 2024
1 parent 767320b commit ceed633
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/eas-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,21 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
if: ${{ !inputs.checkout_ref }}

- name: Install 1Password CLI
uses: 1password/install-cli-action@v1
if: ${{ inputs.envTemplateFile }}

- name: Load secret
uses: 1password/load-secrets-action/configure@v2
if: ${{ inputs.envTemplateFile }}
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

- name: Build .env.production
run: op inject -i ${{ inputs.envTemplateFile }}.tpl -o ${{ inputs.envTemplateFile }}
if: ${{ inputs.envTemplateFile }}
working-directory: ${{ inputs.working_directory }}

- uses: actions/checkout@v4
if: ${{ inputs.checkout_ref }}
Expand Down Expand Up @@ -172,7 +186,7 @@ jobs:
eas-version: latest
packager: ${{ inputs.package_manager }}
expo-cache: true # optional

- name: Get Hash
if: ${{ !inputs.always_run }}
run: echo "HASH=`jq -r '.expo.${{ inputs.platform }}.runtimeVersion' app.json`" >> $GITHUB_ENV
Expand Down Expand Up @@ -262,4 +276,4 @@ jobs:
url: ${{ env.BUILD_URL }}

- uses: rtCamp/action-slack-notify@v2
if: ${{ failure() && env.SLACK_WEBHOOK }}
if: ${{ failure() && env.SLACK_WEBHOOK }}

0 comments on commit ceed633

Please sign in to comment.