Skip to content

Commit

Permalink
publish with composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
figadore committed Dec 30, 2021
1 parent 91deaf8 commit 17a5c69
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/publish-action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# When a commit is made to main, perform a GitHub release, bumping the semantic
# version. Defaults to `default-bump` param, override with
# `#major`/`#minor`/`#patch` in the commit message
name: Publish GitHub Action

on:
Expand All @@ -7,30 +10,12 @@ on:

jobs:
release:
name: Release
name: GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: GitHub Tag Bump
uses: anothrNick/github-tag-action@1.36.0
id: tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: minor
WITH_V: true
DRY_RUN: true
- name: List Release
run: echo "This will create the release '${{ steps.tag.outputs.new_tag }}'"
- name: Create Release
uses: ncipollo/release-action@v1
- name: GitHub semver release
uses: vivantehealth/github-semver-release-action@v0
with:
body: ${{ github.event.head_commit.message }}
tag: ${{ steps.tag.outputs.new_tag }}
- name: Update major version release tag
uses: haya14busa/action-update-semver@v1
with:
tag: ${{ steps.tag.outputs.new_tag }}
message: ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}

default-bump: patch

0 comments on commit 17a5c69

Please sign in to comment.