Skip to content

Commit

Permalink
Chore/Add auto release feature throgh github actions (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Udit Gaurav <[email protected]>
  • Loading branch information
uditgaurav authored Sep 17, 2020
1 parent 21cc2da commit 755a391
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
# This workflow is to perform automatic release on litmus-ansible repository
# Please provide the release version and release tag in github secrets for the upcoming release.
name: AutoRelease

# Executes a job at 10:15am on the 15th day of every month
on:
schedule:
- cron: '0 15 10 15 * *'

jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"

steps:

# create a release branch from master
# Provide release branch from the github secret ex. 1.9.x
- uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: '${{ secrets.RELEASE_BRANCH }}'

# Provide release tag from the github secret ex. 1.9.0
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ secrets.RELEASE_TAG }}"
prerelease: false
title: "${{ secrets.RELEASE_TAG }}"

0 comments on commit 755a391

Please sign in to comment.