From 7e6aba6e2339290fbd667aa607be59ef7de29d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deluan=20Quint=C3=A3o?= Date: Wed, 9 Oct 2024 21:22:44 -0400 Subject: [PATCH] Fix release (#2) * fix * fix * fix * fix * fix * fix * fix --- .github/workflows/docker-image.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 5453485..a88a802 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -46,7 +46,7 @@ jobs: # tags: | # type=semver,pattern={{version}} - - name: Build and Push + - name: Build uses: docker/build-push-action@v5 with: context: . @@ -54,7 +54,7 @@ jobs: platforms: ${{ matrix.platform }} # push: true outputs: | - type=local,dest=./dist + type=local,dest=./output target: artifact # tags: ${{ steps.meta.outputs.tags }} build-args: | @@ -62,36 +62,45 @@ jobs: TAGLIB_SHA=e3de03501ff66221d1f1f971022b248d5b38ba06 RELEASE_VERSION=0 - - name: Set filename - id: set-filename + - name: Sanitize platform name + id: set-platform run: | PLATFORM=$(echo ${{ matrix.platform }} | tr '/' '-') - echo "filename=taglib-2.0.2-1-$PLATFORM.zip" >> $GITHUB_ENV + echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV + + - name: Create artifact + id: create-artifact + run: | + mkdir -p ./dist + tar -czf ./dist/taglib-${{ env.PLATFORM }}.tar.gz -C ./output . - uses: actions/upload-artifact@v4 with: - name: ${{ env.filename }} + name: ${{ env.PLATFORM }} path: ./dist retention-days: 7 release: needs: build - if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') steps: - name: Download artifact uses: actions/download-artifact@v4 with: path: ./dist - pattern: taglib-* merge-multiple: true + - run: ls -lR ./dist + - name: Generate checksums run: | cd ./dist sha256sum * > checksums.txt - name: Create Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: - files: ./dist/* \ No newline at end of file + files: ./dist/* + generate_release_notes: true + make_latest: true \ No newline at end of file