Files
ttyd/.github/workflows/release.yml
2020-02-19 00:33:47 +08:00

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 }}