254: Smoke test the binary in the release workflow + create 'latest' release r=thomaseizinger a=thomaseizinger



Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
bors[bot] 2021-03-02 01:58:02 +00:00 committed by GitHub
commit b6bcdbfbf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

29
.github/workflows/latest-release.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: "Create 'latest' release"
on:
push:
branches:
- master
jobs:
create_release:
name: Create latest release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Delete 'latest' release
uses: larryjoelane/delete-release-action@v1.0.24
with:
release-name: latest
token: ${{ secrets.BOTTY_GITHUB_TOKEN }}
- name: Create 'latest' release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }}
with:
tag_name: latest
release_name: latest
draft: false
prerelease: true

View File

@ -25,6 +25,9 @@ jobs:
- name: Build ${{ matrix.target }} release binary
run: cargo build --target=${{ matrix.target }} --release --package swap --bin swap_cli
- name: Smoke test the binary
run: target/${{ matrix.target }}/release/swap_cli --help
# Remove once python 3 is the default
- uses: actions/setup-python@v1
with: