Skip to content

Commit

Permalink
Fix force releases (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay authored Dec 22, 2020
1 parent 03cc690 commit 68acd75
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
os: [ubuntu-latest, macos-latest]
rust: [stable]
steps:
- name: Set Force Release env
run: |
if [ "${{ github.event.inputs.force }}" = "--force" ]; then
echo "GITHUB_RELEASE_FORCE=--replace" >> $GITHUB_ENV
else
echo "GITHUB_RELEASE_FORCE=''" >> $GITHUB_ENV
fi
echo "FORCE_RELEASE=${{ github.event.inputs.force }}"
echo "FORCE_RELEASE=${{ github.event.inputs.force }}" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v2
- name: Install cargo-make
Expand All @@ -44,19 +53,26 @@ 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:
name: Raspberry Pi Release
runs-on: ubuntu-latest
steps:
- name: Set Force Release env
run: |
if [ "${{ github.event.inputs.force }}" = "--force" ]; then
echo "GITHUB_RELEASE_FORCE=--replace" >> $GITHUB_ENV
else
echo "GITHUB_RELEASE_FORCE=''" >> $GITHUB_ENV
fi
echo "FORCE_RELEASE=${{ github.event.inputs.force }}"
echo "FORCE_RELEASE=${{ github.event.inputs.force }}" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v2
- name: Install cargo-make
Expand Down
1 change: 1 addition & 0 deletions makefiles/Pi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ args = [
"--tag", "v${FLUVIO_VERSION}",
"--name", "fluvio-v${FLUVIO_VERSION}-${TARGET}",
"--file", "./target/${TARGET}/release/fluvio",
"${GITHUB_RELEASE_FORCE}",
]

0 comments on commit 68acd75

Please sign in to comment.