From b764e6ff7ac42cf1a1b4a885b501fb52c5f87da6 Mon Sep 17 00:00:00 2001 From: TheiLLeniumStudios <104288623+TheiLLeniumStudios@users.noreply.github.com> Date: Mon, 15 Jan 2024 11:01:07 +0000 Subject: [PATCH] Add release workflow with pubishing instead --- .github/workflows/publish-binaries.yaml | 18 +++++++++++++----- .github/workflows/publish-docker-image.yaml | 8 ++++---- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-binaries.yaml b/.github/workflows/publish-binaries.yaml index 6149fd1..420670e 100644 --- a/.github/workflows/publish-binaries.yaml +++ b/.github/workflows/publish-binaries.yaml @@ -1,9 +1,17 @@ -name: Publish binaries to release -on: - release: - types: [published] +name: Create release and publish binaries +on: + push: + tags: + - 'v*' jobs: - release: + create_release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - uses: ncipollo/release-action@v1 + publish_binaries: name: release ${{ matrix.target }} runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/publish-docker-image.yaml b/.github/workflows/publish-docker-image.yaml index f38bb5a..b4403a1 100644 --- a/.github/workflows/publish-docker-image.yaml +++ b/.github/workflows/publish-docker-image.yaml @@ -1,7 +1,8 @@ name: Publish Docker image -on: - release: - types: [published] +on: + push: + tags: + - 'v*' jobs: push_to_registry: name: Push Docker image to Docker Hub @@ -20,7 +21,6 @@ jobs: uses: docker/metadata-action@v5 with: images: ghcr.io/${{ github.repository }} - - name: Build and push Docker image uses: docker/build-push-action@v5 with: