Skip to content

Commit

Permalink
feat: adjust cd
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdramadhanarvin committed Sep 9, 2024
1 parent 9fe595a commit 63a2c78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ jobs:
coverage: none

- name: Copy credentials Google Api
env:
SECRET_PASSPHRASE: ${{ secrets.CRENDENTIALS_PASSPHRASE }}
run: |
touch ./storage/app/credentials.json && \
echo "${{ secrets.GOOGLE_API_CRENDENTIALS }}" >> ./storage/app/credentials.json && \
cp .env.example .env
# touch ./storage/app/credentials.json && \
# echo "${{ secrets.GOOGLE_API_CRENDENTIALS }}" >> ./storage/app/credentials.json && \
cp .env.example .env && \
gpg --quiet --batch --yes --decrypt --passphrase="$SECRET_PASSPHRASE" \
--output ./storage/app/credentials.json credentials.json.gpg
- name: Run composer install
run: composer install -n --prefer-dist -o
Expand Down
Binary file added credentials.json.gpg
Binary file not shown.

0 comments on commit 63a2c78

Please sign in to comment.