Closed caendesilva closed 2 weeks ago
Adds a feature to set arbitrary environment variables using the env input. Simply provide each variable in KEY=VALUE format, one per line:
env
- uses: hydephp/action@master with: deploy-to: "pages" env: | CUSTOM_VAR=value DEPLOY_SHA=${{ github.sha }}
The environment variables will be available during the build process. Note that if you're using sensitive information, you should use GitHub Secrets instead of hardcoding the values. Also make sure your input is valid "dotenv" syntax.
Fixes https://github.com/hydephp/action/issues/43
Confirmed to be working great in a separate repo.
As a side note: this works just fine if you just want to set one value:
env: CUSTOM=ENV
Adds a feature to set arbitrary environment variables using the
env
input. Simply provide each variable in KEY=VALUE format, one per line:The environment variables will be available during the build process. Note that if you're using sensitive information, you should use GitHub Secrets instead of hardcoding the values. Also make sure your input is valid "dotenv" syntax.
Fixes https://github.com/hydephp/action/issues/43