Skip to content

Suggestion: environment deploys would be cool! #3

@PascaleBeier

Description

@PascaleBeier

Hey,

thanks for that nice little action. Love it.

In my current workflow, I need to create a .env file and manually call ~/.deta/bin/deta update -e .env
to propagate current environment variables to a deployed micro.

It's not that big of a deal, but maybe this action could ease that up.

Suggestion

Add a deta-update-env flag:

deta-update-env is a path to a .env file, that does nothing more than running deta update -e with the given parameter as argument. (See https://docs.deta.sh/docs/micros/env_vars/)

I would suggest that you'd have to explicitly enable it by passing a string.

name: Deploy to Deta
on: push

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: BogDAAAMN/[email protected]
        with:
          deta-update-env: '.env' # Optional: environment file to be deployed to Deta. Defaults to '', which disables this. See https://docs.deta.sh/docs/micros/env_vars/

If you like me to, I can figure out a PR as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions