Skip to content

Commit

Permalink
Adding pipeline to release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
javieraviles committed May 30, 2020
1 parent 74a9014 commit 0badc1b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Master CICD

on:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Pull Request CI

on:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tag CI

on:
push:
tags: [ v* ]

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false

0 comments on commit 0badc1b

Please sign in to comment.