Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions - Pro Login - Password? #797

Closed
4 tasks done
chrismalek opened this issue Dec 20, 2019 · 2 comments
Closed
4 tasks done

GitHub Actions - Pro Login - Password? #797

chrismalek opened this issue Dec 20, 2019 · 2 comments

Comments

@chrismalek
Copy link

Prerequisites

  • I am running the latest version. (up upgrade)
  • I searched to see if the issue already exists.
  • I inspected the verbose debug output with the -v, --verbose flag.
  • Are you an Up Pro subscriber?

Description

I am trying to setup a github action to deploy on push. I am a pro subscriber and it seems when up team login is entered it sends an email. Is there a way to pass a password? The login works but I have to respond to the email. I want to make it automated. I can't find anything in the docs.

Here is the script I am trying to run in the github action.

curl -sf https://up.apex.sh/install | BINDIR=. sh
./up team login --email $UPEmail --team $UPEmail
./up upgrade
./up production
@tj
Copy link
Member

tj commented Dec 21, 2019

Ahh yep! For running in CI you can use up team ci which gives you an auth token you can set as an environment variable UP_CONFIG. Then all you should need is:

curl -sf https://up.apex.sh/install | BINDIR=. sh
./up upgrade
./up production

Here's the full guide: https://apex.sh/docs/up/guides/#deploying_applications_from_continuous_integration

@chrismalek
Copy link
Author

Sorry I thought I read all the docs in that section. Somehow I missed that. Thanks for pointing out I am blind! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants