Skip to content

Commit

Permalink
fixed release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IPdotSetAF committed Nov 10, 2024
1 parent 59d5ed5 commit a4ec7ad
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permissions:
contents: write
pages: write
id-token: write
packages: write

env:
REGISTRY: ghcr.io
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit a4ec7ad

Please sign in to comment.