mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-07-12 04:40:43 +00:00
Add automagic release of V1 tag
This commit is contained in:
@@ -193,16 +193,23 @@ jobs:
|
|||||||
body_path: .release_notes
|
body_path: .release_notes
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
|
prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
|
||||||
|
- name: Delete previous v1 release asset
|
||||||
|
uses: mknejp/delete-release-assets@v1
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
fail-if-no-assets: false
|
||||||
|
tag: v1
|
||||||
|
assets: 'semver-gen-*'
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release_global
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
files: dist/semver-gen-*
|
files: dist/semver-gen-*
|
||||||
tag_name: ${{ needs.prepare.outputs.RELEASE_VERSION }}
|
tag_name: v1
|
||||||
name: ${{ needs.prepare.outputs.RELEASE_VERSION }}
|
name: v1
|
||||||
body_path: .release_notes
|
body_path: .release_notes
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
|
prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user