From cefcd23cd219b7b14970f3de462159c5efffaf18 Mon Sep 17 00:00:00 2001 From: Mathias Beaulieu-Duncan Date: Sat, 14 Mar 2026 06:28:12 -0400 Subject: [PATCH] Update CI pipeline to use refresh token for pub.dev auth Uses PUB_DEV_REFRESH_TOKEN secret to authenticate with pub.dev. The refresh token is long-lived and auto-renews the access token. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/publish.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 26b8b02..59758c0 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -38,9 +38,6 @@ jobs: with: go-version: '1.23' - - name: Install Xcode tools - run: xcode-select --install 2>/dev/null || true - - name: Build xcframework from Go source run: | chmod +x build_go.sh @@ -51,10 +48,21 @@ jobs: ls -lh ios/TailscaleKit.xcframework/ios-arm64/TailscaleKit.framework/TailscaleKit ls -lh ios/TailscaleKit.xcframework/ios-arm64-simulator/TailscaleKit.framework/TailscaleKit + - name: Write pub.dev credentials + run: | + mkdir -p "$HOME/Library/Application Support/dart" + cat > "$HOME/Library/Application Support/dart/pub-credentials.json" <