Skip to content

Embarking on the GitHub Actions journey, πŸš€ I've mastered the art of automating workflows to make development a breeze! πŸ€– Through YAML magic, I've woven CI/CD spells, conjuring automated testing and deployment charms. πŸ§™β€β™‚οΈ This newfound wizardry has supercharged my projects, fostering efficient collaboration in the GitHub realm.

Notifications You must be signed in to change notification settings

dsrathore1/GitHub-Action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GitHub Actions 🎬

GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows you to automate your build, test, 
and deployment pipeline. You can create workflows that build and test every pull  request to your repository, or 
deploy merged pull requests to production.


How Workflow works β€Ό

Note : Always create .github/workflows on first page of Repo.

GitHub Actions uses YAML syntax to define the workflow. Each workflow is stored as a separate YAML file in your code repository, in a directory named .github/workflows.

There are 5 main steps of GitHub Actions

  • Events
  • Jobs
  • Runners
  • Steps
  • Actions

SIMPLE EXAMPLE :-

This is an a simple and best example of GitHub Actions to understand an concept although to use of CI/CD Pipelines in better way. This shows how YAML CODE exactly works. I think this is an better alternative of JENKINS for beginner, and at the end this is easy to learn tool too.

name: GitHub Actions # --> This is for file name
run-name: Action is going ON # --> This command is for Title of running actions
on: [push] # --> As name suggest this is most important command to push the code  

jobs:
  build:
    runs-on: ubuntu-latest # --> Virtual Machine
    defaults: # --> These all commands will execute first
      run:
        working-directory: ./app # --> Change the  directory
    steps:
      - uses: actions/checkout@v3
        with:
        
      - name: Run a sample github actions
        run: | 
            echo "This workflow runs successfully"
            echo " Runs all the commands in single command because this will not takes time to execute"

πŸ™JAY SHREE KRISHNA πŸ™

About

Embarking on the GitHub Actions journey, πŸš€ I've mastered the art of automating workflows to make development a breeze! πŸ€– Through YAML magic, I've woven CI/CD spells, conjuring automated testing and deployment charms. πŸ§™β€β™‚οΈ This newfound wizardry has supercharged my projects, fostering efficient collaboration in the GitHub realm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published