/hosting-deployer-action

A GitHub action to deploy ByteInspire hosting

Primary LanguageTypeScriptMIT LicenseMIT

ByteInspire Hosting GitHub Action

Build Status License: MIT

Use this GitHub Action to deploy ByteInspire hosting.

Usage

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

name: Deploy Hosting

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/hosting-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 hosting 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
hosting-url The default hosting url

License

MIT