Skip to content

Commit

Permalink
Merge pull request #434 from mbektas/use_secrets_when_releasing
Browse files Browse the repository at this point in the history
use secrets only when publishing release assets
  • Loading branch information
mbektas authored Mar 28, 2022
2 parents cd7abe7 + 18b934e commit 9d06c9b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,17 @@ jobs:
run: |
yarn create_env_installer:${{ matrix.cfg.platform }}
- name: Sets Environment variables for release
run: |
echo "APPLEID=${{ secrets.APPLEID }}" >> $GITHUB_ENV
echo "APPLEIDPASS=${{ secrets.APPLEIDPASS }}" >> $GITHUB_ENV
echo "CSC_KEY_PASSWORD=${{ secrets.CSC_KEY_PASSWORD }}" >> $GITHUB_ENV
echo "CSC_LINK=${{ secrets.CSC_LINK }}" >> $GITHUB_ENV
if: steps.release-exists.outputs.result == 'true'

- name: Create Application Installer
env:
CSC_IDENTITY_AUTO_DISCOVERY: ${{ steps.release-exists.outputs.result }} # disable code signing if not release asset
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
run: |
yarn dist:${{ matrix.cfg.platform }}
Expand Down

0 comments on commit 9d06c9b

Please sign in to comment.