Merge pull request #84 from webp-sh/release-with-action

Add Action file to release binary on tag
This commit is contained in:
Benny 2021-12-12 16:38:47 +08:00 committed by GitHub
commit 88dcc9c873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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