Skip to content

Commit

Permalink
added bump and release action
Browse files Browse the repository at this point in the history
  • Loading branch information
NivEz committed May 19, 2023
1 parent ff349df commit 5583b89
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/bump_and_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Bump and release
on:
push:
branches:
- main

jobs:
bump:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
new_tag: ${{ steps.bump.outputs.new_tag }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'

- name: Bump version and push tag
id: bump
uses: anothrNick/github-tag-action@1.64.0 # Don't use @master or @v1 unless you're happy to test the latest version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
WITH_V: true
DEFAULT_BUMP: none

release:
runs-on: ubuntu-latest
needs: bump
steps:
- name: Checkout
uses: actions/checkout@v3

- name: release
uses: ncipollo/release-action@v1
with:
tag: ${{ needs.bump.outputs.new_tag }}
generateReleaseNotes: true

0 comments on commit 5583b89

Please sign in to comment.