Last active
August 19, 2023 11:40
-
-
Save kylecorry31/47ec9ef466b72b655f6927a7c223b9c3 to your computer and use it in GitHub Desktop.
Encode a file to base64 for use in github secrets
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
echo ${ENCODED_FILE_AS_ENVIRONMENT_VARIABLE} | base64 -d > decoded.txt |
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
cat <filename> | base64 | tr -d '\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For use with github actions: