mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
41 lines
1015 B
YAML
41 lines
1015 B
YAML
name: Release Binaries
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '**.md'
|
|
- 'Makefile'
|
|
- 'config.json'
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
name: Create Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Make WebP Server Go
|
|
run: |
|
|
docker run --rm -w /app -v "$(pwd)":/app webpsh/libvips make
|
|
sudo chown -R $USER:$USER builds/
|
|
sha256sum builds/webp-server-linux-amd64 > builds/webp-server-linux-amd64.sha256
|
|
|
|
- name: Check for ldd version
|
|
run: |
|
|
ldd builds/webp-server-linux-amd64
|
|
|
|
- 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
|