mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Add Action file to release binary on tag
This commit is contained in:
parent
8b0354fff7
commit
6c594a9f3a
35
.github/workflows/release.yaml
vendored
Normal file
35
.github/workflows/release.yaml
vendored
Normal 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
|
Loading…
x
Reference in New Issue
Block a user