Skip to content

Commit 6191ee4

Browse files
committed
Publishing automation for remaining packages
1 parent 18ca1f6 commit 6191ee4

File tree

7 files changed

+32
-7
lines changed

7 files changed

+32
-7
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- 'sqlite3-[0-9]+.[0-9]+.[0-9]+*'
7+
- 'sqlite3_test-[0-9]+.[0-9]+.[0-9]+*'
8+
- 'sqlite3_web-[0-9]+.[0-9]+.[0-9]+*'
79

810
jobs:
911
#fetch_sqlite:
@@ -37,6 +39,7 @@ jobs:
3739
github-token: ${{ github.token }}
3840
path: sqlite-compiled
3941
- name: Set tag name
42+
if: "${{ startsWith(github.ref_name, 'sqlite3-') }}"
4043
id: tag
4144
run: |
4245
tag=$(basename "${{ github.ref }}")
@@ -48,6 +51,7 @@ jobs:
4851
run: ls -al sqlite-compiled
4952

5053
- name: Create Release
54+
if: "${{ startsWith(github.ref_name, 'sqlite3-') }}"
5155
env:
5256
GH_TOKEN: ${{ github.token }}
5357
GH_REPO: ${{ github.repository }}
@@ -58,11 +62,32 @@ jobs:
5862
5963
gh release upload "$tag" sqlite-compiled/*
6064
61-
publish:
65+
publish_sqlite3:
6266
needs: [prepare_release]
6367
permissions:
6468
id-token: write
69+
if: "${{ startsWith(github.ref_name, 'sqlite3-') }}"
6570
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
6671
with:
6772
environment: 'pub.dev'
6873
working-directory: sqlite3/
74+
75+
publish_sqlite3_test:
76+
needs: [prepare_release]
77+
permissions:
78+
id-token: write
79+
if: "${{ startsWith(github.ref_name, 'sqlite3_test-') }}"
80+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
81+
with:
82+
environment: 'pub.dev'
83+
working-directory: sqlite3_test/
84+
85+
publish_sqlite3_web:
86+
needs: [prepare_release]
87+
permissions:
88+
id-token: write
89+
if: "${{ startsWith(github.ref_name, 'sqlite3_web-') }}"
90+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
91+
with:
92+
environment: 'pub.dev'
93+
working-directory: sqlite3_web/

sqlite3/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 3.0.0-beta.0
1+
## 3.0.0-beta.1
22

33
- __Breaking change__: Use [build hooks](https://dart.dev/tools/hooks) to load
44
SQLite instead of `DynamicLibrary`.

sqlite3/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sqlite3
22
description: Provides lightweight yet convenient bindings to SQLite by using dart:ffi
3-
version: 3.0.0-beta.0
3+
version: 3.0.0-beta.1
44
homepage: https://github.com/simolus3/sqlite3.dart/tree/main/sqlite3
55
issue_tracker: https://github.com/simolus3/sqlite3.dart/issues
66
resolution: workspace

sqlite3_test/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.2.0-dev
1+
## 0.2.0-beta.0
22

33
- Use version 3.x of `package:sqlite3`.
44

sqlite3_test/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sqlite3_test
22
description: Integration of fake clocks and other test utilities for SQLite databases.
3-
version: 0.2.0-dev
3+
version: 0.2.0-beta.0
44
homepage: https://github.com/simolus3/sqlite3.dart/tree/main/sqlite3_test
55
repository: https://github.com/simolus3/sqlite3.dart
66
resolution: workspace

sqlite3_web/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.5.0-dev
1+
## 0.5.0-beta.0
22

33
- Use version 3 of `package:sqlite3`.
44

sqlite3_web/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: sqlite3_web
22
description: Utilities to simplify accessing sqlite3 on the web, with automated feature detection.
3-
version: 0.5.0-0
3+
version: 0.5.0-beta.0
44
homepage: https://github.com/simolus3/sqlite3.dart/tree/main/sqlite3_web
55
repository: https://github.com/simolus3/sqlite3.dart
66
resolution: workspace

0 commit comments

Comments
 (0)