Skip to content

Commit

Permalink
Release arugments (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay authored Dec 22, 2020
1 parent 3a771e8 commit 03cc690
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions makefiles/Github.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion makefiles/S3.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
'''

Expand Down

0 comments on commit 03cc690

Please sign in to comment.