2020-11-26 08:28:56 +00:00
|
|
|
# How we deploy a release. Covers binary builds. Also manages packaging for AUR, winget, choco, and homebrew.
|
|
|
|
#
|
2020-11-21 20:31:19 +00:00
|
|
|
# Based on:
|
|
|
|
# - https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/release.yml
|
|
|
|
|
|
|
|
name: deployment
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2020-11-26 08:28:56 +00:00
|
|
|
inputs:
|
|
|
|
tag:
|
2021-01-31 19:19:07 +00:00
|
|
|
description: "Which tag to deploy as:"
|
2020-11-26 08:28:56 +00:00
|
|
|
required: true
|
2020-11-22 09:18:47 +00:00
|
|
|
push:
|
2020-11-21 20:31:19 +00:00
|
|
|
tags:
|
2020-11-22 09:18:47 +00:00
|
|
|
- "[0-9]+.[0-9]+.[0-9]+"
|
2020-11-21 20:31:19 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
create-github-release:
|
|
|
|
name: create-github-release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Create artifacts directory
|
|
|
|
run: mkdir artifacts
|
|
|
|
|
|
|
|
- name: Get the release version from the tag
|
|
|
|
if: env.VERSION == ''
|
|
|
|
run: |
|
2020-11-26 08:28:56 +00:00
|
|
|
if [[ -n "${{ github.event.inputs.tag }}" ]]; then
|
|
|
|
echo "Manual run against a tag; overriding actual tag in the environment..."
|
|
|
|
echo "VERSION=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
|
|
|
|
else
|
|
|
|
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
|
|
|
fi
|
|
|
|
|
|
|
|
- name: Validate version environment variable
|
2020-11-22 17:40:29 +00:00
|
|
|
run: |
|
2020-11-26 08:28:56 +00:00
|
|
|
echo "Version being built against is version ${{ env.VERSION }}"!
|
2020-11-22 09:18:47 +00:00
|
|
|
|
2020-11-21 20:31:19 +00:00
|
|
|
- name: Create GitHub release
|
|
|
|
id: release
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
draft: true
|
|
|
|
tag_name: ${{ env.VERSION }}
|
|
|
|
release_name: ${{ env.VERSION }} Release
|
|
|
|
|
|
|
|
- name: Save release upload URL to artifact
|
|
|
|
run: echo "${{ steps.release.outputs.upload_url }}" > artifacts/release-upload-url
|
|
|
|
|
|
|
|
- name: Save version number to artifact
|
|
|
|
run: echo "${{ env.VERSION }}" > artifacts/release-version
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: artifacts
|
|
|
|
path: artifacts
|
|
|
|
|
|
|
|
build-release:
|
|
|
|
name: build-release
|
|
|
|
needs: [create-github-release]
|
|
|
|
runs-on: ${{ matrix.triple.os }}
|
2021-05-13 02:53:18 +00:00
|
|
|
container: ${{ matrix.triple.container }}
|
2020-11-21 20:31:19 +00:00
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
triple:
|
|
|
|
# Standard x86-64 stuff, stable
|
|
|
|
- {
|
2021-05-12 01:04:24 +00:00
|
|
|
os: "ubuntu-18.04",
|
2020-11-21 20:31:19 +00:00
|
|
|
target: "x86_64-unknown-linux-gnu",
|
|
|
|
cross: false,
|
|
|
|
}
|
2021-05-13 02:53:18 +00:00
|
|
|
- {
|
|
|
|
os: "ubuntu-18.04",
|
|
|
|
target: "x86_64-unknown-linux-gnu",
|
|
|
|
cross: false,
|
|
|
|
container: quay.io/pypa/manylinux2014_x86_64,
|
|
|
|
suffix: "2-17",
|
|
|
|
}
|
2020-11-21 20:31:19 +00:00
|
|
|
- {
|
2021-05-12 01:04:24 +00:00
|
|
|
os: "ubuntu-18.04",
|
2020-11-21 20:31:19 +00:00
|
|
|
target: "i686-unknown-linux-gnu",
|
|
|
|
cross: true,
|
|
|
|
}
|
|
|
|
- {
|
|
|
|
os: "ubuntu-18.04",
|
|
|
|
target: "x86_64-unknown-linux-musl",
|
|
|
|
cross: false,
|
|
|
|
}
|
|
|
|
- {
|
|
|
|
os: "ubuntu-18.04",
|
|
|
|
target: "i686-unknown-linux-musl",
|
|
|
|
cross: true,
|
|
|
|
}
|
2020-11-22 09:18:47 +00:00
|
|
|
- { os: "macOS-latest", target: "x86_64-apple-darwin", cross: false }
|
2020-11-21 20:31:19 +00:00
|
|
|
- {
|
|
|
|
os: "windows-2019",
|
|
|
|
target: "x86_64-pc-windows-msvc",
|
|
|
|
cross: false,
|
|
|
|
}
|
2021-05-10 03:19:01 +00:00
|
|
|
- { os: "windows-2019", target: "i686-pc-windows-msvc", cross: false }
|
2020-11-21 20:31:19 +00:00
|
|
|
- {
|
|
|
|
os: "windows-2019",
|
|
|
|
target: "x86_64-pc-windows-gnu",
|
|
|
|
cross: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
# aarch64
|
|
|
|
- {
|
|
|
|
os: "ubuntu-18.04",
|
|
|
|
target: "aarch64-unknown-linux-gnu",
|
|
|
|
cross: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
# armv7
|
|
|
|
- {
|
|
|
|
os: "ubuntu-18.04",
|
|
|
|
target: "armv7-unknown-linux-gnueabihf",
|
|
|
|
cross: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
# PowerPC 64 LE
|
|
|
|
- {
|
|
|
|
os: "ubuntu-18.04",
|
|
|
|
target: "powerpc64le-unknown-linux-gnu",
|
|
|
|
cross: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
|
|
|
|
- name: Get release download URL
|
2020-11-22 09:18:47 +00:00
|
|
|
uses: actions/download-artifact@v2
|
2020-11-21 20:31:19 +00:00
|
|
|
with:
|
|
|
|
name: artifacts
|
|
|
|
path: artifacts
|
|
|
|
|
|
|
|
- name: Set release upload URL and release version
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-11-22 09:18:47 +00:00
|
|
|
release_upload_url="$(cat ./artifacts/release-upload-url)"
|
2020-11-21 20:31:19 +00:00
|
|
|
echo "RELEASE_UPLOAD_URL=$release_upload_url" >> $GITHUB_ENV
|
2020-11-22 09:18:47 +00:00
|
|
|
release_version="$(cat ./artifacts/release-version)"
|
2020-11-21 20:31:19 +00:00
|
|
|
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
|
2020-11-22 09:18:47 +00:00
|
|
|
|
2020-11-26 08:28:56 +00:00
|
|
|
- name: Validate release environment variables
|
2020-11-22 09:18:47 +00:00
|
|
|
run: |
|
2020-11-26 08:28:56 +00:00
|
|
|
echo "Release upload url: ${{ env.RELEASE_UPLOAD_URL }}"
|
|
|
|
echo "Release version: ${{ env.RELEASE_VERSION }}"
|
2020-11-21 20:31:19 +00:00
|
|
|
|
|
|
|
- name: Install Net-Framework-Core (Windows x86-64 MSVC)
|
|
|
|
if: matrix.triple.target == 'x86_64-pc-windows-msvc'
|
|
|
|
shell: powershell
|
|
|
|
run: Install-WindowsFeature Net-Framework-Core
|
|
|
|
|
|
|
|
- name: Install wixtoolset (Windows x86-64 MSVC)
|
|
|
|
if: matrix.triple.target == 'x86_64-pc-windows-msvc'
|
|
|
|
uses: crazy-max/ghaction-chocolatey@v1.4.0
|
|
|
|
with:
|
|
|
|
args: install -y wixtoolset
|
|
|
|
|
|
|
|
# - name: Export wixtoolset to path (Windows x86-64 MSVC)
|
|
|
|
# if: matrix.triple.target == 'x86_64-pc-windows-msvc'
|
|
|
|
# shell: powershell
|
2020-11-22 09:18:47 +00:00
|
|
|
# run: export PATH=${PATH}:"/c/Program Files (x86)/WiX Toolset v3.11/bin"
|
2020-11-21 20:31:19 +00:00
|
|
|
|
|
|
|
- name: Install toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
target: ${{ matrix.triple.target }}
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
2020-12-12 01:39:32 +00:00
|
|
|
args: --release --verbose --target=${{ matrix.triple.target }} --no-default-features
|
2020-11-21 20:31:19 +00:00
|
|
|
use-cross: ${{ matrix.triple.cross }}
|
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Move autocomplete to working directory
|
2020-11-21 20:31:19 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-11-22 09:18:47 +00:00
|
|
|
cp -r ./target/${{ matrix.triple.target }}/release/build/bottom-*/out completion
|
|
|
|
|
|
|
|
- name: Strip release binary (macOS or Linux x86-64/i686)
|
|
|
|
if: matrix.triple.os != 'windows-2019' && matrix.triple.target != 'aarch64-unknown-linux-gnu' && matrix.triple.target != 'armv7-unknown-linux-gnueabihf' && matrix.triple.target != 'powerpc64le-unknown-linux-gnu'
|
2020-11-21 20:31:19 +00:00
|
|
|
run: |
|
2020-11-22 09:18:47 +00:00
|
|
|
strip target/${{ matrix.triple.target }}/release/btm
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2020-11-28 20:37:06 +00:00
|
|
|
# TODO: Strip ARM
|
|
|
|
|
2020-11-21 20:31:19 +00:00
|
|
|
- name: Bundle release and completion (Windows)
|
2020-11-22 09:18:47 +00:00
|
|
|
if: matrix.triple.os == 'windows-2019'
|
2020-11-21 20:31:19 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-11-22 09:18:47 +00:00
|
|
|
cp target/${{ matrix.triple.target }}/release/btm.exe btm.exe
|
2021-06-21 23:56:59 +00:00
|
|
|
7z a bottom_${{ matrix.triple.target }}.zip "btm.exe"
|
|
|
|
7z a bottom_${{ matrix.triple.target }}.zip "completion"
|
2020-11-21 20:31:19 +00:00
|
|
|
echo "ASSET=bottom_${{ matrix.triple.target }}.zip" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- name: Bundle release and completion (Linux and macOS)
|
2020-11-22 09:18:47 +00:00
|
|
|
if: matrix.triple.os != 'windows-2019'
|
2020-11-21 20:31:19 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-11-22 09:18:47 +00:00
|
|
|
cp target/${{ matrix.triple.target }}/release/btm ./btm
|
2021-05-13 02:53:18 +00:00
|
|
|
tar -czvf bottom_${{ matrix.triple.target }}${{ matrix.triple.suffix }}.tar.gz btm completion
|
|
|
|
echo "ASSET=bottom_${{ matrix.triple.target }}${{ matrix.triple.suffix }}.tar.gz" >> $GITHUB_ENV
|
2020-11-21 20:31:19 +00:00
|
|
|
|
|
|
|
- name: Upload main release
|
|
|
|
uses: actions/upload-release-asset@v1.0.1
|
2020-11-27 15:50:25 +00:00
|
|
|
id: upload
|
2020-11-21 20:31:19 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
|
|
|
|
asset_path: ${{ env.ASSET }}
|
|
|
|
asset_name: ${{ env.ASSET }}
|
|
|
|
asset_content_type: application/octet-stream
|
|
|
|
|
2020-11-27 15:50:25 +00:00
|
|
|
- name: Add download asset to artifact if required
|
2020-12-11 01:11:34 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-unknown-linux-musl' || matrix.triple.target == 'x86_64-pc-windows-msvc' || matrix.triple.target == 'i686-pc-windows-msvc' || matrix.triple.target == 'x86_64-apple-darwin'
|
2020-11-27 15:50:25 +00:00
|
|
|
run: cp ${{ env.ASSET }} artifacts/
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: artifacts
|
|
|
|
path: artifacts
|
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Build msi file (Windows x86-64 MSVC)
|
2020-11-21 20:31:19 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-pc-windows-msvc'
|
|
|
|
shell: powershell
|
|
|
|
run: |
|
2020-11-22 09:18:47 +00:00
|
|
|
cargo install cargo-wix
|
|
|
|
cargo wix init
|
|
|
|
cargo wix
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Upload msi file (Windows x86-64 MSVC)
|
2020-11-21 20:31:19 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-pc-windows-msvc'
|
|
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
|
|
|
|
asset_path: bottom_x86_64_installer.msi
|
|
|
|
asset_name: bottom_x86_64_installer.msi
|
|
|
|
asset_content_type: application/octet-stream
|
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Build winget (Windows x86-64 MSVC)
|
2020-11-21 20:31:19 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-pc-windows-msvc'
|
|
|
|
run: |
|
2021-05-10 00:05:02 +00:00
|
|
|
python "./deployment/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/windows/winget/winget.yaml.template" "Clement.bottom.yaml" "SHA256" "./bottom_x86_64_installer.msi"
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Upload winget file (Windows x86-64 MSVC)
|
2020-11-21 20:31:19 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-pc-windows-msvc'
|
|
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
|
2021-05-10 00:05:02 +00:00
|
|
|
asset_path: Clement.bottom.yaml
|
|
|
|
asset_name: Clement.bottom.yaml
|
2020-11-21 20:31:19 +00:00
|
|
|
asset_content_type: application/octet-stream
|
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Build Debian release (Linux x86-64 GNU)
|
2021-05-13 02:53:18 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
|
2020-11-21 20:31:19 +00:00
|
|
|
run: |
|
2021-02-25 01:42:47 +00:00
|
|
|
cargo install cargo-deb --version 1.29.0
|
2020-11-22 09:18:47 +00:00
|
|
|
cargo deb
|
2020-11-21 20:31:19 +00:00
|
|
|
cp ./target/debian/bottom_*.deb ./bottom_${{ env.RELEASE_VERSION }}_amd64.deb
|
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Upload Debian file (Linux x86-64 GNU)
|
2021-05-13 02:53:18 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
|
2020-11-21 20:31:19 +00:00
|
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
|
|
|
|
asset_path: bottom_${{ env.RELEASE_VERSION }}_amd64.deb
|
|
|
|
asset_name: bottom_${{ env.RELEASE_VERSION }}_amd64.deb
|
|
|
|
asset_content_type: application/octet-stream
|
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Build AUR PKGBUILD (Linux x86-64 GNU)
|
2021-06-26 19:36:54 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
|
2020-11-21 20:31:19 +00:00
|
|
|
run: |
|
2020-11-22 09:18:47 +00:00
|
|
|
curl -LO "https://github.com/ClementTsang/bottom/archive/${{ env.RELEASE_VERSION }}.tar.gz"
|
|
|
|
python "./deployment/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/linux/arch/PKGBUILD.template" "./PKGBUILD" "SHA512" "./${{ env.RELEASE_VERSION }}.tar.gz"
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Build AUR binary PKGBUILD (Linux x86-64 GNU)
|
2021-06-26 19:47:13 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
|
2020-11-21 20:31:19 +00:00
|
|
|
run: |
|
2020-11-22 09:18:47 +00:00
|
|
|
python "./deployment/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/linux/arch/PKGBUILD_BIN.template" "./PKGBUILD_BIN" "SHA512" "./bottom_x86_64-unknown-linux-gnu.tar.gz"
|
2020-11-21 20:31:19 +00:00
|
|
|
|
|
|
|
- name: Tar AUR PKGBUILDs
|
2021-06-26 19:47:13 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
|
2020-11-21 20:31:19 +00:00
|
|
|
run: |
|
2020-11-22 09:18:47 +00:00
|
|
|
tar -czvf arch.tar.gz PKGBUILD_BIN PKGBUILD
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2020-11-22 09:18:47 +00:00
|
|
|
- name: Upload AUR PKGBUILDs (Linux x86-64 GNU)
|
2021-06-26 19:47:13 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
|
2020-11-21 20:31:19 +00:00
|
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
|
|
|
|
asset_path: arch.tar.gz
|
|
|
|
asset_name: arch.tar.gz
|
|
|
|
asset_content_type: application/octet-stream
|
2020-11-26 05:07:38 +00:00
|
|
|
|
|
|
|
additional-file-generation:
|
|
|
|
needs: [build-release]
|
|
|
|
name: additional-file-generation
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
|
|
|
|
- name: Get release download URL
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: artifacts
|
|
|
|
path: artifacts
|
|
|
|
|
2020-11-27 15:50:25 +00:00
|
|
|
- name: Set release upload URL, download URL and version
|
2020-11-26 05:07:38 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
release_upload_url="$(cat ./artifacts/release-upload-url)"
|
|
|
|
echo "RELEASE_UPLOAD_URL=$release_upload_url" >> $GITHUB_ENV
|
|
|
|
release_version="$(cat ./artifacts/release-version)"
|
|
|
|
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
|
|
|
|
|
2020-11-26 08:28:56 +00:00
|
|
|
- name: Validate release environment variables
|
2020-11-26 05:07:38 +00:00
|
|
|
run: |
|
2020-11-26 08:28:56 +00:00
|
|
|
echo "Release upload url: ${{ env.RELEASE_UPLOAD_URL }}"
|
|
|
|
echo "Release version: ${{ env.RELEASE_VERSION }}"
|
2020-11-26 05:07:38 +00:00
|
|
|
|
|
|
|
- name: Execute choco packaging script
|
|
|
|
run: |
|
2020-11-27 15:50:25 +00:00
|
|
|
python "./deployment/windows/choco/choco_packager.py" "./artifacts/bottom_i686-pc-windows-msvc.zip" "./artifacts/bottom_x86_64-pc-windows-msvc.zip" ${{ env.RELEASE_VERSION }} "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template" "bottom.nuspec" "tools/chocolateyinstall.ps1" "tools/"
|
2020-11-26 05:07:38 +00:00
|
|
|
zip -r choco.zip "bottom.nuspec" "tools"
|
|
|
|
|
|
|
|
- name: Upload choco.zip to release
|
|
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
|
|
|
|
asset_path: choco.zip
|
|
|
|
asset_name: choco.zip
|
|
|
|
asset_content_type: application/octet-stream
|
|
|
|
|
|
|
|
- name: Execute Homebrew packaging script
|
|
|
|
run: |
|
2020-12-11 01:11:34 +00:00
|
|
|
python "./deployment/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/macos/homebrew/bottom.rb.template" "./bottom.rb" "SHA256" "./artifacts/bottom_x86_64-apple-darwin.tar.gz" "./artifacts/bottom_x86_64-unknown-linux-musl.tar.gz";
|
2020-11-26 05:07:38 +00:00
|
|
|
|
|
|
|
- name: Upload bottom.rb to release
|
|
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
|
|
|
|
asset_path: bottom.rb
|
|
|
|
asset_name: bottom.rb
|
|
|
|
asset_content_type: application/octet-stream
|
2021-06-11 22:43:53 +00:00
|
|
|
|
|
|
|
- name: Compress completion files (Linux x86-64 GNU)
|
|
|
|
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
tar -C ./completion -czvf completion.tar.gz .
|
|
|
|
|
|
|
|
- name: Release completion files (Linux x86-64 GNU)
|
2021-06-21 23:56:59 +00:00
|
|
|
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
|
2021-06-11 22:43:53 +00:00
|
|
|
uses: actions/upload-release-asset@v1.0.1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
|
|
|
|
asset_path: completion.tar.gz
|
|
|
|
asset_name: completion.tar.gz
|
|
|
|
asset_content_type: application/octet-stream
|