Skip to content

Commit 2b95b5c

Browse files
committed
deployment fixes
1 parent fddf5d9 commit 2b95b5c

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/cd.brew.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
bump-tap:
14-
if: startsWith(github.event.release.tag_name, 2)
14+
if: startsWith(github.event.release.tag_name, 'v2')
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: aurelien-baudet/workflow-dispatch@v4

.github/workflows/cd.crates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515

1616
jobs:
1717
publish:
18-
if: startsWith(github.event.release.tag_name, 2)
18+
if: startsWith(github.event.release.tag_name || github.event.inputs.tag, 'v2')
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/cd.vx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
- run: |
2626
git tag -f latest
2727
git push origin latest --force
28-
if: startsWith(github.event.release.tag_name, 2)
28+
if: startsWith(github.event.release.tag_name, 'v2')

.github/workflows/cd.www.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ on:
88
- published
99
workflow_dispatch:
1010
inputs:
11-
release-id:
11+
tag:
1212
required: true
1313

1414
concurrency:
15-
group: cd/www/${{ github.event.release.tag_name || github.event.inputs.release-id }}
15+
group: cd/www/${{ github.event.release.tag_name || github.event.inputs.tag }}
1616
cancel-in-progress: true
1717

1818
jobs:
1919
www-upload:
20-
if: startsWith(github.event.release.tag_name, 2)
20+
if: startsWith(github.event.release.tag_name || github.event.inputs.tag, 'v2')
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: aws-actions/configure-aws-credentials@v4
@@ -28,11 +28,10 @@ jobs:
2828

2929
- uses: robinraju/release-downloader@v1.11
3030
with:
31-
releaseId: ${{ github.event.release.id || github.event.inputs.release-id }}
31+
releaseId: ${{ github.event.release.id }}
32+
tag: ${{ github.event.inputs.tag }}
3233
fileName: pkgx-*.tar.xz
3334

34-
- run: ls -la
35-
3635
- name: Unpack Binaries
3736
run: |
3837
go() {

scripts/publish-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ gum confirm "draft prepared, release $v_new?" || exit 1
5959
gh release edit \
6060
v$v_new \
6161
--verify-tag \
62-
$(if [ $is_prerelease = false ]; then echo --latest; fi) \
62+
--latest \
6363
--draft=false \
6464
--discussion-category=Announcements
6565

0 commit comments

Comments
 (0)