Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Release notes come from the first `## <version>` section of `CHANGELOG.md`.
## Release process

1. Bump `version:` in `pubspec.yaml`
2. Update `lib/src/version.dart` and the `conceptadev/[email protected]` reference in
2. Update `lib/src/version.dart` and the `btwld/[email protected]` reference in
`README.md` to the same value (`dart test test/ci_gate_test.dart` checks all
three agree)
3. Add the matching `## X.Y.Z` section at the top of `CHANGELOG.md`
Expand All @@ -43,7 +43,7 @@ must match step 1.
cli_pkg hardcodes the GitHub release's `tag_name` to the **bare** version, so
the release job also publishes a `X.Y.Z` tag at the same commit and the
release assets hang off that one. Both tags therefore exist for every
release, and `conceptadev/[email protected]` keeps working as an action ref.
release, and `btwld/[email protected]` keeps working as an action ref.
- **CHANGELOG**: cli_pkg reads `CHANGELOG.md` for the GitHub release body
- **Assets**: `okf-<version>-<os>-<arch>.tar.gz` per platform, attached to the
bare-version release. Only the
Expand All @@ -55,11 +55,11 @@ must match step 1.
| Secret | Used by | Purpose |
| --- | --- | --- |
| `GITHUB_TOKEN` | automatic | create the release, upload assets |
| `HOMEBREW_TAP_GH_TOKEN` | `pkg-homebrew-update` | push to `conceptadev/homebrew-tap` |
| `HOMEBREW_TAP_GH_TOKEN` | `pkg-homebrew-update` | push to `btwld/homebrew-tap` |

pub.dev needs no secret: the `release` job requests `id-token: write` and
setup-dart exchanges that OIDC token for temporary credentials. This requires
automated publishing to be configured on pub.dev for `conceptadev/okf` with
automated publishing to be configured on pub.dev for `btwld/okf` with
this workflow filename (`release.yml`) and a `v{{version}}` tag pattern.
cli_pkg's `pkg-pub-deploy` is deliberately unused: it can only publish from a
long-lived `PUB_CREDENTIALS` file.
Expand Down Expand Up @@ -94,5 +94,5 @@ canonically owns the repository. cli_pkg does not follow redirects on POST.

### Homebrew step fails to push

`HOMEBREW_TAP_GH_TOKEN` needs write access to `conceptadev/homebrew-tap`, and
`HOMEBREW_TAP_GH_TOKEN` needs write access to `btwld/homebrew-tap`, and
the tap must already contain `Formula/okf.rb`.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ implementation and is not affiliated with or endorsed by Google.
Install the command-line tool with Homebrew:

```console
brew install conceptadev/tap/okf
brew install btwld/tap/okf
```

With Dart 3.9 or later, add the library:
Expand Down Expand Up @@ -94,7 +94,7 @@ Gate a repository on OKF Spec conformance with one step and no configuration:

```yaml
steps:
- uses: conceptadev/[email protected]
- uses: btwld/[email protected]
```

The action downloads the released `okf` archive for the ref in `uses`, unpacks
Expand Down Expand Up @@ -402,4 +402,4 @@ their generated schema companions are available through the public OKF library.
Apache License 2.0.

[spec]: https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/62432a095456147ee71e70ac6e4dc0d2dea3ac30/okf/SPEC.md
[example]: https://github.com/conceptadev/okf/blob/main/example/okf.dart
[example]: https://github.com/btwld/okf/blob/main/example/okf.dart
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: okf
description: A format-first Dart toolkit for reading, validating, writing, indexing, and graphing Open Knowledge Format bundles.
version: 0.5.0
repository: https://github.com/conceptadev/okf
issue_tracker: https://github.com/conceptadev/okf/issues
repository: https://github.com/btwld/okf
issue_tracker: https://github.com/btwld/okf/issues
topics:
- okf
- knowledge
Expand Down
2 changes: 1 addition & 1 deletion test/ci/gate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void main() {
expect(
formula,
contains(
RegExp(r'url "https://github\.com/conceptadev/okf/archive/refs/tags/v'),
RegExp(r'url "https://github\.com/btwld/okf/archive/refs/tags/v'),
),
reason: "the ref must be the tag form Homebrew's url audit accepts",
);
Expand Down
2 changes: 1 addition & 1 deletion tool/ci/install-engine.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trap 'rm -f "$archive"' EXIT

curl --fail --silent --show-error --location --retry 3 \
--output "$archive" \
"https://github.com/conceptadev/okf/releases/download/$release/$asset"
"https://github.com/btwld/okf/releases/download/$release/$asset"
tar --extract --gzip --file "$archive" --directory "$directory"

# cli_pkg archives unpack to "<standalone name>/<executable>".
Expand Down
6 changes: 3 additions & 3 deletions tool/release/homebrew/okf.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Canonical source: conceptadev/okf, tool/release/homebrew/okf.rb. Edit it
# Canonical source: btwld/okf, tool/release/homebrew/okf.rb. Edit it
# there and copy the result into the tap; a hand edit made only in the tap is
# lost at the next release.
#
Expand All @@ -12,8 +12,8 @@
# third-party tap would make every install pull that tap in.
class Okf < Formula
desc "Format-first toolkit for Open Knowledge Format bundles"
homepage "https://github.com/conceptadev/okf"
url "https://github.com/conceptadev/okf/archive/refs/tags/v0.3.0.tar.gz"
homepage "https://github.com/btwld/okf"
url "https://github.com/btwld/okf/archive/refs/tags/v0.3.0.tar.gz"
sha256 "d7edf53e48533cea185cb237a563470af0515843b08862bc8267b3f4d6972df0"
license "Apache-2.0"

Expand Down
2 changes: 1 addition & 1 deletion tool/release/tool/grind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const _packageName = 'okf';
// never an account that merely redirects to it. GitHub keeps redirects alive
// after a repository moves, and cli_pkg does not follow redirects on POST, so
// a stale owner here fails only at release creation, after every check passed.
const _owner = 'conceptadev';
const _owner = 'btwld';

final Directory _releaseToolRoot = Directory.current;
final Directory _repoRoot = Directory(
Expand Down
Loading