GithubHelp home page GithubHelp logo

action-deploy's Introduction

Architect Deploy Action

Architect logo Architect logo

This is a GitHub Action that builds an architect application and deploys it to AWS.

How does it work?

When called the action will:

  • checkout the project
  • set up node.js v14
  • installs dependencies (works with npm, pnpm and yarn)
  • runs npm run vendor if present
  • Deploys to staging if the commit is to the main branch.
  • Deploys to production if the git tag starts with v.

Usage

Typically, you will want to add this action as the first step in a workflow. Then if the tests pass you can send a message to Discord or Slack.

For example:

jobs:
  # Assuming all that went fine (and it's main): deploy!
  deploy:
    # Setup
    needs: build # See: https://github.com/architect/action-build/
    if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
    runs-on: ubuntu-latest

    # Go
    steps:
      - name: Deploy app
        uses: architect/action-deploy@v1
        with:
          aws_access_key_id: ${{secrets.AWS_ACCESS_KEY_ID}}
          aws_secret_access_key: ${{secrets.AWS_SECRET_ACCESS_KEY}}

Options

This action has a few options you can configure:

Key Required Value Default Description
aws_access_key_id Yes String Credentials from AWS Console
aws_secret_access_key Yes String Credentials from AWS Console
use_lock_file No Boolean true By default, this action will use a lock file like package-lock.json, npm-shrinkwrap.json or yarn.lock. You can set useLockFile: false to use just package.json
node-version No Number 14 The node-version input is optional. If not supplied, the node version defaults to 14.

Contributing

Find out more about contributing to Architect

action-deploy's People

Contributors

macdonst avatar tbeseda avatar

Watchers

 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.