Code Monkey home page Code Monkey logo

moralis-deploy-action's Introduction

Deployment Contributor Covenant

Moralis Deploy GitHub Action

Custom GitHub Actions to help you build CI/CD workflow to deploy JS/TS projects to Moralis server.

Table of Contents

๐Ÿ‘จโ€๐Ÿ’ป Supported Frameworks

  • Vanilla Javascript
  • React

๐Ÿ—๏ธ Usage

Note that this custom GitHub Action is tested to be working only with Vanilla Javascript and React project. For Vanilla, checkout main.yml within this repository. For React, checkout an example here

name: Moralis Deploy
on: [push]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Deploy
        uses: YosephKS/moralis-deploy-action@<version>
        env:
          MORALIS_API_KEY: ${{ secrets.MORALIS_API_KEY }}
          MORALIS_API_SECRET: ${{ secrets.MORALIS_API_SECRET }}
          MORALIS_API_SUBDOMAIN: ${{ secrets.MORALIS_API_SUBDOMAIN }}
          CUSTOM_FOLDER_PATH: ${{ secrets.CUSTOM_FOLDER_PATH }}

๐Ÿญ Environment Variables

The environment variables need to be stored in the repository's secrets. To get the value of the required environment variables, sign up for a free acccount here and create a new server.

  • MORALIS_API_KEY (required): Get CLI API Key value
  • MORALIS_API_SECRET (required): Get CLI API Secret value
  • MORALIS_API_SUBDOMAIN (required): Get subdomain from the Server URL, e.g.If https://yjf6ilbm7qh5.usemoralis.com:2053/server is your Server URL, then the subdomain value will be yjf6ilbm7qh5.usemoralis.com
  • CUSTOM FOLDER_PATH: The path to where your build folder (containing index.html) is located; If no value is provided then it defaults to the root folder.

๐Ÿ› ๏ธ Contributing

See CONTRIBUTING.md

๐Ÿ“„ License

GNU Affero General Public License

moralis-deploy-action's People

Contributors

yosephks avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.