Skip to content

Commit 04fa63e

Browse files
committed
Switch S3 bucket to ydb-dbeaver-plugin and add GitHub Release step
- Deploy P2 repository to s3://ydb-dbeaver-plugin/ (bucket root, no subdirs) - Create GitHub Release with P2 repository URL in description - Add contents: write permission required for release creation - Update README with new P2 repository URL
1 parent a1efa7c commit 04fa63e

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.github/workflows/deploy.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
validate:
1013
name: Validate version
@@ -60,7 +63,7 @@ jobs:
6063
AWS_SECRET_ACCESS_KEY: ${{ secrets.YC_SECRET }}
6164
run: |
6265
REPO_DIR="repository/target/repository"
63-
S3_DEST="s3://ydb-dbeaver/dbeaver/"
66+
S3_DEST="s3://ydb-dbeaver-plugin/"
6467
YC_ENDPOINT="https://storage.yandexcloud.net"
6568
6669
aws s3 sync "$REPO_DIR" "$S3_DEST" \
@@ -88,4 +91,19 @@ jobs:
8891
--endpoint-url "$YC_ENDPOINT" \
8992
--no-progress
9093
91-
echo "Deployed to: ${YC_ENDPOINT}/ydb-dbeaver/dbeaver"
94+
echo "Deployed to: ${YC_ENDPOINT}/ydb-dbeaver-plugin"
95+
96+
- name: Create GitHub Release
97+
uses: softprops/action-gh-release@v2
98+
with:
99+
tag_name: ${{ github.ref_name }}
100+
name: YDB DBeaver Plugin ${{ github.ref_name }}
101+
body: |
102+
## Installation
103+
104+
1. Open DBeaver → **Help** → **Install New Software…**
105+
2. Click **Add…** and enter the P2 repository URL:
106+
```
107+
https://storage.yandexcloud.net/ydb-dbeaver-plugin
108+
```
109+
3. Select **YDB DBeaver Plugin** and complete the installation.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ This method enables automatic updates.
219219
**Step 3.** In the "Add Repository" dialog enter the URL in the **Location** field:
220220

221221
```
222-
https://storage.yandexcloud.net/ydb-dbeaver/dbeaver
222+
https://storage.yandexcloud.net/ydb-dbeaver-plugin
223223
```
224224

225225
```
@@ -229,7 +229,7 @@ https://storage.yandexcloud.net/ydb-dbeaver/dbeaver
229229
│ Name: [YDB Plugin ] │
230230
│ │
231231
│ Location: [https://storage.yandexcloud. │
232-
│ net/ydb-dbeaver/dbeaver ] │
232+
│ net/ydb-dbeaver-plugin ] │
233233
│ [Local...] [Archive...] │
234234
│ [Add] [Cancel] │
235235
└─────────────────────────────────────────┘
@@ -534,7 +534,7 @@ Each new build automatically gets a unique version like `1.0.0.v20260302-1652` (
534534

535535
### URL installation — automatic updates work
536536

537-
If the plugin was installed via **Help → Install New Software → Add → URL** `https://storage.yandexcloud.net/ydb-dbeaver/dbeaver` (Method 2), DBeaver remembers that URL. Publishing a new repository at the same URL is enough:
537+
If the plugin was installed via **Help → Install New Software → Add → URL** `https://storage.yandexcloud.net/ydb-dbeaver-plugin` (Method 2), DBeaver remembers that URL. Publishing a new repository at the same URL is enough:
538538

539539
Users receive the update:
540540

@@ -562,7 +562,7 @@ If the plugin was installed via **Archive...** (local ZIP file), DBeaver does no
562562
2. Remove the old version: **Help → About DBeaver → Installation Details → select plugin → Uninstall** → restart
563563
3. Install the new version from ZIP following the same instructions as the first time
564564

565-
> **Recommendation:** install via URL `https://storage.yandexcloud.net/ydb-dbeaver/dbeaver` (Method 2) to receive updates automatically.
565+
> **Recommendation:** install via URL `https://storage.yandexcloud.net/ydb-dbeaver-plugin` (Method 2) to receive updates automatically.
566566
567567
---
568568

0 commit comments

Comments
 (0)