Created
July 25, 2024 11:20
-
-
Save hatemhosny/f9992487128123222a9200c34e367efc to your computer and use it in GitHub Desktop.
save GitHub secrets and vars to artifact
This file contains hidden or 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: ENV | |
| on: [push] | |
| jobs: | |
| create-envfile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Make secrets envfile | |
| uses: SpicyPizza/[email protected] | |
| with: | |
| envkey_SECRETS: ${{ toJSON(secrets) }} | |
| file_name: secrets.js | |
| fail_on_empty: false | |
| - name: Make vars envfile | |
| uses: SpicyPizza/[email protected] | |
| with: | |
| envkey_VARS: ${{ toJSON(vars) }} | |
| file_name: vars.js | |
| fail_on_empty: false | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: env_vars | |
| path: . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment