Skip to content

Commit

Permalink
👷 Update GitHub Actions workflow to read env file based on OS
Browse files Browse the repository at this point in the history
  • Loading branch information
pitzzahh committed Jan 14, 2025
1 parent 9020713 commit bb46153
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,14 @@ jobs:
envkey_APP_PASS_PHRASE: ${{ secrets.APP_PASS_PHRASE }}
envkey_FILE_ENCRYPTION_SALT: ${{ secrets.FILE_ENCRYPTION_SALT }}

- name: Read created env file
- name: Read created env file (Linux/Mac)
if: matrix.platform != 'windows-latest'
run: cat $GITHUB_WORKSPACE/.env

- name: Read created env file (Windows)
if: matrix.platform == 'windows-latest'
run: type $env:GITHUB_WORKSPACE\.env

# - name: Create env on Mac or Linux
# if: matrix.platform == 'macos-latest' || matrix.platform == 'ubuntu-22.04'
# run: |
Expand Down

0 comments on commit bb46153

Please sign in to comment.