Skip to content

GitHub Action to deploy current repo to Deta Space

Notifications You must be signed in to change notification settings

lizheming/deta-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deta Space Action

GitHub Action to deploy current repo to Deta Space.

Input variables

See action.yml for more detailed information.

  • access_token: Deta access token. How to get Deta access token?
  • id: project id of an existing project
  • tag: tag to identify this push
  • dir: src of project to push (default "./")
  • listed: listed on discovery
  • notes: release notes
  • version: version for the release
  • release: set false if you want disable release action

Usage

# .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