feat: Add release_type input to create-release workflow

This commit is contained in:
ogabrielluiz 2024-05-28 18:44:01 -03:00
commit 9965f9a31a
2 changed files with 13 additions and 1 deletions

View file

@ -6,6 +6,13 @@ on:
description: "Version to release"
required: true
type: string
release_type:
description: "Type of release (base or main)"
required: true
type: choice
options:
- base
- main
jobs:
create_release:
name: Create Release
@ -13,7 +20,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: dist
name: dist${{ inputs.release_type }}
path: dist
- name: Create Release
uses: ncipollo/release-action@v1

View file

@ -67,6 +67,11 @@ jobs:
else
make publish main=true
fi
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist${{ inputs.release_type }}
path: dist
call_docker_build:
name: Call Docker Build Workflow