From 6c594a9f3a615f95c77399928bb8ca2561990838 Mon Sep 17 00:00:00 2001 From: n0vad3v Date: Sun, 12 Dec 2021 16:36:53 +0800 Subject: [PATCH] Add Action file to release binary on tag --- .github/workflows/release.yaml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..3e9964c --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,35 @@ +on: + push: + tags: + - '*' + +name: Release WebP Server Go Binaries + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.17.3 + + - name: Make WebP Server Go + run: | + sudo apt-get update && sudo apt install libaom-dev + make + sha256sum builds/webp-server-linux-amd64 > builds/webp-server-linux-amd64.sha256 + + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: true + title: "WebP Server Go" + files: | + builds/webp-server-linux-amd64 + builds/webp-server-linux-amd64.sha256 \ No newline at end of file