Created
August 19, 2023 12:32
-
-
Save MillerAdulu/f8b49b685dd268e746f0bb4b511a0837 to your computer and use it in GitHub Desktop.
Create a file on the fly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Create .env | |
run: | | |
echo "API_KEY_WEB=${{ secrets.API_KEY_WEB }}" >> .env | |
echo "API_KEY_ANDROID=${{ secrets.API_KEY_ANDROID }}" >> .env | |
# What this will do is that it will get the key from the secrets in the repository and push | |
# then into the .env file before you can build your APK or project |
Works! Thankyou very much🙏
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dev-vickie,
Thought this was a GitHub workflow you were working on. For CodeMagic, ensure to define the variables in the environment Variables section
Once you are set, you then go to the
Pre-build script
section and add the commandsSomething of this sort should work.