/deta-action

GitHub Action to deploy current repo to Deta Space

Primary LanguageShell

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