Skip to content

Commit 68e2a82

Browse files
committed
fix release workflow
1 parent adfe49c commit 68e2a82

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
run: mv *.deb *.rpm dist/
3131
- name: Set RELEASE_VERSION
3232
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
33+
- name: Set RELEASE_NUMBER
34+
run: echo "RELEASE_NUMBER=$(echo $RELEASE_VERSION | cut -c2-)" >> $GITHUB_ENV
3335
- name: Build darwin binary
3436
run: GOOS=darwin CGO_ENABLED=0 go build -mod vendor -o dist/sops-${{ env.RELEASE_VERSION }}.darwin go.mozilla.org/sops/v3/cmd/sops
3537
- name: Build windows binary
@@ -42,8 +44,8 @@ jobs:
4244
repo_token: "${{ secrets.GITHUB_TOKEN }}"
4345
prerelease: true
4446
files: |
45-
dist/sops-${{ env.RELEASE_VERSION }}.windows
47+
dist/sops-${{ env.RELEASE_VERSION }}.exe
4648
dist/sops-${{ env.RELEASE_VERSION }}.darwin
4749
dist/sops-${{ env.RELEASE_VERSION }}.linux
48-
dist/sops_${{ env.RELEASE_VERSION }}_amd64.deb
49-
dist/sops_${{ env.RELEASE_VERSION }}-1.x86_64.rpm
50+
dist/sops-${{ env.RELEASE_NUMBER }}_amd64.deb
51+
dist/sops-${{ env.RELEASE_NUMBER }}-1.x86_64.rpm

0 commit comments

Comments
 (0)