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