mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Merge #254
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:
commit
b6bcdbfbf8
29
.github/workflows/latest-release.yml
vendored
Normal file
29
.github/workflows/latest-release.yml
vendored
Normal 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
|
3
.github/workflows/release-cli.yml
vendored
3
.github/workflows/release-cli.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user