Code Monkey home page Code Monkey logo

deta-deploy-action's People

Contributors

bogdaaamn avatar joshuanianji avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deta-deploy-action's Issues

Request entity too large error

While deploying my web app to Deta, the Action errors out with the following error: Error: failed to deploy: Request entity too large.

Failed workflow run: https://github.com/OurTechCommunity/catchup/runs/5065242922

How can this error be resolved?

NOTE: After the workflow failed, I tried to deploy my web app to the Micro directly from my local CLI and that worked. So there is some issue going on with the Action, I guess.

Error: failed to deploy: Not allowed to change or delete some files requested

I'm trying to to do ci cd with github actions , I got this error when i ran the code

logs-
Run BogDAAAMN/[email protected]
Run curl -fsSL https://get.deta.dev/cli.sh | sh
#=#=#
##O#-#
##O=# #

                                                                       0.4%

################################## 48.5%
################################################################## 92.7%
######################################################################## 100.0%
Archive: /home/runner/.deta/bin/deta.zip
inflating: deta
Deta was installed successfully to /home/runner/.deta/bin/deta
Manually add /home/runner/.deta/bin/deta to your path:
export PATH="/home/runner/.deta/bin:$PATH"

Run '/home/runner/.deta/bin/deta --help' to get started
Run export DETA_ACCESS_TOKEN=***
Cloning...
Successfully cloned deta micro to '/home/runner/work/Indian_city_rent_predictor_ci-cd/Indian_city_rent_predictor_ci-cd/tmp'
Run export DETA_ACCESS_TOKEN=***
export DETA_ACCESS_TOKEN=***
cd .
~/.deta/bin/deta deploy
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Deploying...
Error: failed to deploy: Not allowed to change or delete some files requested
Error: Process completed with exit code 1.

Update to Deta Space

Hey @bogdaaamn! What's up?

First of all, thanks for development this Github Action. I started to use and now i can't stop haha.

I have a doubt related the future of this project. Deta announced few days ago about Deta Space and discontinue Deta Cloud (like a migration process). So, my question is, do you have some plans to upgrade and improve this action to deploy apps on the new environment?

Suggestion: environment deploys would be cool!

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.

Authorisation Error

With a new push, stage Set up job and Run actions/checkout@v2 go well, but at stage Run BogDAAAMN/[email protected] an error occurs:

with:
    deta-access-token: ***
    deta-name: server-one
    deta-project: default
#=#=#                                                                         

######################################################################## 100.0%
                                                                           0.0%
#######################################                                   54.5%
########################################################                  78.9%
######################################################################## 100.0%
Archive:  /home/runner/.deta/bin/deta.zip
  inflating: deta                    
Deta was installed successfully to /home/runner/.deta/bin/deta
Manually add /home/runner/.deta/bin/deta to your path:
  export PATH="/home/runner/.deta/bin:$PATH"
 
  Run '/home/runner/.deta/bin/deta --help' to get started
Error: failed to list spaces: Unauthorized
Error: Process completed with exit code 1.

My actions:
On deta: added a new key in settings by pressing button Create Key.
Copied the key value and added the repository with code DETA_TOKEN to the secrets.
Created an action file.
My action file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.