GitHub Action to deploy current repo to Deta Space.
See action.yml for more detailed information.
access_token
: Deta access token. How to get Deta access token?id
: project id of an existing projecttag
: tag to identify this pushdir
: src of project to push (default "./")listed
: listed on discoverynotes
: release notesversion
: version for the releaserelease
: setfalse
if you want disable release action
# .github/workflows/deploy.yml
name: deploy to deta space
on:
push:
branches:
- main
jobs:
deploy:
name: deploy to deta space
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy
uses: lizheming/deta-action@master
with:
access_token: ${{ secrets.space_access_token }}
id: ${{ secrets.space_id }}
version: "1.0.0"
notes: "Release automatically with GitHub deta action"
listed: true