Add Action file to release binary on tag

This commit is contained in:
n0vad3v 2021-12-12 16:36:53 +08:00
parent 8b0354fff7
commit 6c594a9f3a
No known key found for this signature in database
GPG Key ID: 8D42A0E699E50639

35
.github/workflows/release.yaml vendored Normal file
View File

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