Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.46 KB

README.md

File metadata and controls

19 lines (12 loc) · 1.46 KB

This repository contains a GitHub Action which will tag the repository whenever there is a push on the main branch. Normally developers tend to forget tagging the repository whenever some new stable code is merged on the main branch and eventually deployed on production. This workflow aims to automate the tagging process whenever there is a new deployment on main branch.

Some background on Git tag and GitHub actions

Git Tag

Tags are like way to create a snapshot of Git repo. Git tags are reference that point to specific points in the Git history. A tag is a branch which never change. Tags are generally marked as semantic versioning (v1.2.3) .

Creating a tag:

git tag <tag_name>

Publishing a tag:

git push origin <tag_name>

More info on tagging

GitHub Actions

GitHub Actions is a platform that helps to automate the processes in software build, test, and deployment pipeline. You can create workflows in GitHubs actions which will executes whenever there is event/events occurred in git repository. Some examples of such events are push to a particular branch, creation of new issue, pull request etc. GitHub actions also provides facility to run workflow manually or in some cron job like timely maner.

More info on GitHub actions