bogdaaamn / deta-deploy-action Goto Github PK
View Code? Open in Web Editor NEWSimple GitHub Action to deploy current repo to a Deta Micro
Home Page: https://github.com/marketplace/actions/deploy-to-deta
License: MIT License
Simple GitHub Action to deploy current repo to a Deta Micro
Home Page: https://github.com/marketplace/actions/deploy-to-deta
License: MIT License
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.
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.
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?
I just have a simple question that does this GH action automatically deploy whenever a push is made? Something like Netlify and Vercel?
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.