Skip to content

Commit

Permalink
Fix release (#2)
Browse files Browse the repository at this point in the history
* fix

* fix

* fix

* fix

* fix

* fix

* fix
  • Loading branch information
deluan authored Oct 10, 2024
1 parent 41de281 commit 7e6aba6
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,52 +46,61 @@ jobs:
# tags: |
# type=semver,pattern={{version}}

- name: Build and Push
- name: Build
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
platforms: ${{ matrix.platform }}
# push: true
outputs: |
type=local,dest=./dist
type=local,dest=./output
target: artifact
# tags: ${{ steps.meta.outputs.tags }}
build-args: |
TAGLIB_VERSION=2.0.2
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/*
files: ./dist/*
generate_release_notes: true
make_latest: true

0 comments on commit 7e6aba6

Please sign in to comment.