xmr-btc-swap/.github/workflows/release-cli.yml
Daniel Karzel 06be66700e Remove windows from the release
At the moment windows fails to build. This has to be fixed before it is re-added to the release.
2021-02-26 18:11:18 +11:00

50 lines
1.5 KiB
YAML

name: "Release swap_cli"
on:
release:
types: [created]
jobs:
release:
name: Release swap_cli
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tagged commit
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}
token: ${{ secrets.BOTTY_GITHUB_TOKEN }}
- name: Build ${{ matrix.target }} release binary
run: cargo build --target=${{ matrix.target }} --release --package swap --bin swap_cli
# Remove once python 3 is the default
- uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Create release archive
id: create-archive
uses: ./.github/actions/create-release-archive
with:
binary: swap_cli
version: ${{ github.event.release.tag_name }}
target: ${{ matrix.target }}
- name: Upload ${{ matrix.os }} release binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.BOTTY_GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ steps.create-archive.outputs.archive }}
asset_name: ${{ steps.create-archive.outputs.archive }}
asset_content_type: application/gzip