diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dba54fa298..630eb44eb4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,9 @@ on: # tags: # - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 workflow_dispatch: + inputs: + force: + description: 'Force push this release' jobs: upload_fluvio_cli: @@ -41,11 +44,13 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + FORCE_RELEASE: ${{ github.event.inputs.force}} - name: Build and upload release to github run: cargo make -l verbose --profile production github-release-upload env: GITHUB_TOKEN: ${{ secrets.ACTION_RELEASE }} + FORCE_RELEASE: ${{ github.event.inputs.force}} release_fluvio_pi: diff --git a/makefiles/Github.toml b/makefiles/Github.toml index e3d8c7b3c5..07e38223b9 100644 --- a/makefiles/Github.toml +++ b/makefiles/Github.toml @@ -36,6 +36,14 @@ args = [ "--tag", "v${FLUVIO_VERSION}", "--name", "fluvio-v${FLUVIO_VERSION}-${TARGET}", "--file", "./target/${TARGET}/release/fluvio", + "${GITHUB_RELEASE_FORCE}", +] +env_scripts = [ +''' +if [ "${FORCE_RELEASE}" = "--force" ]; then + set_env GITHUB_RELEASE_FORCE "--replace" +fi +''' ] [tasks.github-release-create-pre-release] diff --git a/makefiles/S3.toml b/makefiles/S3.toml index 2929dab4a7..b503315ef5 100644 --- a/makefiles/S3.toml +++ b/makefiles/S3.toml @@ -38,7 +38,7 @@ dependencies = [ script = ''' mkdir -p ~/.fluvio/extensions ./target/${TARGET}/release/fluvio install fluvio/fluvio-package; -./target/${TARGET}/release/fluvio package publish ./target/${TARGET}/release/fluvio --version=${FLUVIO_VERSION}; +./target/${TARGET}/release/fluvio package publish ./target/${TARGET}/release/fluvio --version=${FLUVIO_VERSION} ${FORCE_RELEASE}; ./target/${TARGET}/release/fluvio package bump latest; '''