]> prime8.dev >> repos - ttyd.git/commitdiff
github: add release workflow
authorShuanglei Tao <tsl0922@gmail.com>
Wed, 28 Aug 2019 15:03:41 +0000 (23:03 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Wed, 28 Aug 2019 15:03:41 +0000 (23:03 +0800)
.github/workflows/release.yml [new file with mode: 0644]

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644 (file)
index 0000000..728c7c1
--- /dev/null
@@ -0,0 +1,16 @@
+name: release
+
+on:
+  push:
+    tags:
+    - "*"
+
+jobs:
+  build:
+    runs-on: ubuntu-16.04
+    steps:
+      - uses: actions/checkout@v1
+      - name: build release archive
+        run: |
+          docker run --rm -v $(pwd):/ttyd -w /ttyd -e TTYD_VERSION=$GITHUB_SHA tsl0922/musl-cross ./scripts/cross-build.sh
+          ls -l bin