From a4ec7ad0f9b33d502357adac26198a0841f77360 Mon Sep 17 00:00:00 2001 From: IPdotSetAF Date: Sun, 10 Nov 2024 18:17:03 +0330 Subject: [PATCH] fixed release workflow --- .github/workflows/build-release.yml | 33 ++++++++++++++++------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index cdfb47c..60b69f7 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -9,6 +9,7 @@ permissions: contents: write pages: write id-token: write + packages: write env: REGISTRY: ghcr.io @@ -24,20 +25,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - run: tar -czf mssql-proxy-${{ github.ref_name }}-source.tar.gz Tools/mssql-proxy - - uses: actions/download-artifact@v4 - with: - pattern: build-* - path: ./ - merge-multiple: true - - name: Release - uses: softprops/action-gh-release@v2 - with: - generate_release_notes: true - files: | - mssql-proxy-${{ github.ref_name }}-source.tar.gz - mssql-proxy-${{ github.ref_name }}-linux.tar.gz - mssql-proxy-${{ github.ref_name }}-windows.zip # publish docker - name: Install cosign @@ -70,6 +57,22 @@ jobs: DIGEST: ${{ needs.build-docker.outputs.digest }} run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} + # create release + - run: tar -czf mssql-proxy-${{ github.ref_name }}-source.tar.gz Tools/mssql-proxy + - uses: actions/download-artifact@v4 + with: + pattern: build-* + path: ./ + merge-multiple: true + - name: Release + uses: softprops/action-gh-release@v2 + with: + generate_release_notes: true + files: | + mssql-proxy-${{ github.ref_name }}-source.tar.gz + mssql-proxy-${{ github.ref_name }}-linux.tar.gz + mssql-proxy-${{ github.ref_name }}-windows.zip + build-linux: runs-on: ubuntu-latest steps: @@ -105,7 +108,7 @@ jobs: # build-macos: build-docker: - runs-on: linux-latest + runs-on: ubuntu-latest outputs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}