Giter Club home page Giter Club logo

github-actions-example's Introduction

Github Actions Workflow

  • What is Github Actions
  • How to configure Github workflow in your repo ?
  • Run workflow on existing github hosted runners

Upload on S3 bucket ( aws-s3-upload.yaml)

In this workflow, we will cover below points

  1. Run when push on s3 folder
  2. use a build matrix if you want your workflow to run tests across multiple combinations of operating systems, platforms, and languages.
  3. Use of matrix to run the workflow for different environments or even you can set different variables as per the environment if needed
  4. Connect to AWS account using Github secrets
  5. Use of workflow-dispatch to trigger the workflow manually
  6. Use of max-parallel to run the job for both the environments in parallel
  7. Set working directory to any of your subfolder

Deploy only when push to main branch (deploy.yaml)

In this workflow, we will see how to configure a particular step to run only when there is a push to main branch

References

  1. https://docs.github.com/en/actions/learn-github-actions/managing-complex-workflows
  2. https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions

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.