Skip to content

RevelDigital/webapp-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

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Revel Digital Webapp GitHub Action

Deploy your web application to the Revel Digital CMS with ease.

Usage

This GitHub Action facilitates the deployment of a web app to the Revel Digital CMS.

Example Workflow

name: Deploy Webapp
on: push

jobs:
  release-webapp:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest]

    steps:
      - name: Check out Git repository
        uses: actions/checkout@v1

      - name: Install Node.js, NPM and Yarn
        uses: actions/setup-node@v1
        with:
          node-version: 22

      - name: install angular
        run: npm install -g @angular/cli@17

      - name: npm dependencies
        run: npm install

      - name: Build webapp
        run: ng build

      - name: Deploy webapp to Revel CMS
        uses: RevelDigital/[email protected]
        with:
          api-key: ${{ secrets.Revel_API_Key }}
          environment: ${{ github.head_ref || github.ref_name }}

Inputs

  • api-key: Required - Revel Digital API key. It's suggested to use Github secrets to store the API key. See doc here
  • name: Optional - Name for the webapp. If not supplied will automatically be pulled from the name field in package.json if available.
  • group-name: Optional - Group name as a regex pattern.
  • version: Optional - Version of the webapp. Defaults to version from package.json if available.
  • tags: Optional - Extra tags for smart scheduling (comma delimited).
  • distribution-location: Optional - Distribution folder with assets to wrap into a webapp. If not supplied will automatically be pulled from the package.json if available.
  • environment: Optional - Deployment environment. Default is Production. Options: Production, Development.

License

This project is licensed under the MIT License. See the LICENSE file for details.