mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-14 09:16:07 -04:00
Add create release archive action for ubuntu
gtar is not installed on ubuntu so tar has to be used
This commit is contained in:
parent
13764161a3
commit
95b1558c8e
4 changed files with 71 additions and 11 deletions
44
.github/workflows/release-cli.yml
vendored
44
.github/workflows/release-cli.yml
vendored
|
@ -10,6 +10,8 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- target: x86_64-unknown-linux-gnu
|
||||
os: ubuntu-latest
|
||||
- target: x86_64-apple-darwin
|
||||
os: macos-latest
|
||||
- target: x86_64-pc-windows-msvc
|
||||
|
@ -33,25 +35,34 @@ jobs:
|
|||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Create release archive
|
||||
- name: Create windows release archive
|
||||
id: create-archive-windows
|
||||
if: contains(matrix.os, 'windows')
|
||||
uses: ./.github/actions/create-release-archive-windows
|
||||
uses: ./.github/actions/create-release-archive/windows
|
||||
with:
|
||||
binary: swap_cli
|
||||
version: ${{ github.event.release.tag_name }}
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: Create release archive
|
||||
id: create-archive
|
||||
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
|
||||
uses: ./.github/actions/create-release-archive
|
||||
- name: Create macos release archive
|
||||
id: create-archive-macos
|
||||
if: contains(matrix.os, 'macos')
|
||||
uses: ./.github/actions/create-release-archive/macos
|
||||
with:
|
||||
binary: swap_cli
|
||||
version: ${{ github.event.release.tag_name }}
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: Upload ${{ matrix.os }} release binary
|
||||
- name: Create ubuntu release archive
|
||||
id: create-archive-ubuntu
|
||||
if: contains(matrix.os, 'ubuntu')
|
||||
uses: ./.github/actions/create-release-archive/ubuntu
|
||||
with:
|
||||
binary: swap_cli
|
||||
version: ${{ github.event.release.tag_name }}
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: Upload windows release binary
|
||||
if: contains(matrix.os, 'windows')
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
@ -62,13 +73,24 @@ jobs:
|
|||
asset_name: ${{ steps.create-archive-windows.outputs.archive }}
|
||||
asset_content_type: application/gzip
|
||||
|
||||
- name: Upload ${{ matrix.os }} release binary
|
||||
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
|
||||
- name: Upload macos release binary
|
||||
if: contains(matrix.os, 'macos')
|
||||
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_path: ./${{ steps.create-archive-macos.outputs.archive }}
|
||||
asset_name: ${{ steps.create-archive-macos.outputs.archive }}
|
||||
asset_content_type: application/gzip
|
||||
|
||||
- name: Upload ubuntu release binary
|
||||
if: contains(matrix.os, 'ubuntu')
|
||||
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-ubuntu.outputs.archive }}
|
||||
asset_name: ${{ steps.create-archive-ubuntu.outputs.archive }}
|
||||
asset_content_type: application/gzip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue