lzw-723 / cloud-project-deployer-action

A GitHub action to deploy ByteInspire hosting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ByteInspire Cloud Project GitHub Action

Build Status License: MIT

Use this GitHub Action to deploy ByteInspire cloud project.

Usage

Add a workflow (.github/workflows/deploy.yml):

name: Deploy Cloud Project

on: push

jobs:
  build_and_deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      # Add any build steps here. For example:
      # - run: npm ci && npm run build
      - uses: byteinspire/cloud-project-deployer-action@v1
        with:
          service-id: '${{ secrets.SERVICE_ID }}'
          token: '${{ secrets.ACCESS_TOKEN }}'
          # Or you can use file param to directly specify the ziped file path
          directory: your-directory-path

Inputs

Parameter Required Description
service-id Yes The Service ID in ByteInspire
token Yes The access token or oauth token in ByteInspire, make sure the token has cloud project scope
directory No The location of your directory relative to the root of your repository
file No The location of your ziped file relative to the root of your repository
changelog No Deployment changelog

Outputs

Parameter Description
version The version deployed this time
cloud-project-url The default cloud project url

License

MIT

About

A GitHub action to deploy ByteInspire hosting

License:MIT License


Languages

Language:TypeScript 94.6%Language:JavaScript 5.4%