Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

Releases carry their name in the title (0.1 will be Pollen)

Bee6dd078c2ff09
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1b892a5..7d38d16 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -120,12 +120,19 @@ jobs:
with:
path: files
merge-multiple: true
+ - uses: actions/checkout@v7
+ with:
+ path: source
+ sparse-checkout: Cargo.toml
- name: Draft it
env:
GH_TOKEN: ${{ github.token }}
run: |
+ # The release's name, if Cargo.toml gives one ([workspace.metadata.release]).
+ name=$(awk '/^\[workspace.metadata.release\]/{f=1;next} /^\[/{f=0} f && /^name = /{print $3}' source/Cargo.toml | tr -d '"')
+ title="Nectarlink ${GITHUB_REF_NAME#v}${name:+ $name}"
cd files
sha256sum *.exe *.apk > SHA256SUMS.txt
cat SHA256SUMS.txt
gh release create "${{ github.ref_name }}" *.exe *.apk SHA256SUMS.txt \
- --repo "${{ github.repository }}" --draft --generate-notes --title "Nectarlink ${{ github.ref_name }}"
+ --repo "${{ github.repository }}" --draft --generate-notes --title "$title"
diff --git a/Cargo.toml b/Cargo.toml
index f99fe99..39b58a3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,6 +17,11 @@ rust-version = "1.91"
authors = ["The Nectarlink contributors"]
repository = "https://github.com/thtbee/nectarlink"
+# Each release's name, from a bee's life (0.1 Pollen, …); the release
+# workflow puts it in the release's title.
+[workspace.metadata.release]
+name = "Pollen"
+
[workspace.dependencies]
nectarlink-protocol = { path = "core/nectarlink-protocol", version = "0.0.1" }
nectarlink-core = { path = "core/nectarlink-core", version = "0.0.1" }