mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-24 20:54:21 +01:00
25 lines
622 B
YAML
25 lines
622 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-16.04
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Build Release
|
|
run: |
|
|
mkdir -p bin
|
|
for arch in i386 x86_64 arm armhf aarch64 mips mipsel; do
|
|
docker run --rm -v $(pwd):/ttyd -w /ttyd tsl0922/musl-cross ./scripts/cross-build.sh $arch
|
|
cp build/ttyd bin/ttyd_linux.$arch
|
|
sha256sum bin/ttyd_linux.$arch >> bin/SHA256SUMS
|
|
done
|
|
- uses: ncipollo/release-action@v1
|
|
with:
|
|
artifact: "bin/*"
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|