1
0
mirror of https://github.com/coalaura/ffwebp.git synced 2025-07-17 22:04:35 +00:00
This commit is contained in:
Laura
2024-09-08 00:54:26 +02:00
parent dc92ab0dc7
commit 61666a380d

View File

@ -38,7 +38,7 @@ jobs:
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w" -trimpath -o build/ffwebp_${{ github.ref_name }}_${{ matrix.goos }}_${{ matrix.goarch }}$EXT
- name: Upload build artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ffwebp_${{ github.ref_name }}_${{ matrix.goos }}_${{ matrix.goarch }}
path: ./build/ffwebp_${{ github.ref_name }}_${{ matrix.goos }}_${{ matrix.goarch }}*
@ -50,25 +50,18 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ./build
- name: Display structure of downloaded files
run: ls -R
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: ./build/*
files: ./build/**
name: "Release ${{ github.ref_name }}" # Specify the release name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}