From 2a4c4066b93894f0e171340929bd271abf13fc39 Mon Sep 17 00:00:00 2001 From: nicodes Date: Thu, 30 Jul 2026 17:24:47 -0600 Subject: [PATCH] Use gdam-actions for install and publish Both steps were copied by hand into fourteen repositories and had drifted into three variants each. They now come from the shared action, so a fix lands in one place. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/release.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82482e4..471d5c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,23 +84,11 @@ jobs: run: gh release create "$TAG" dist/*.zip --target "$GITHUB_SHA" --title "$TAG" --notes "Release $TAG" - name: Install GDAM - run: | - set -euo pipefail - mkdir -p "$RUNNER_TEMP/bin" - curl -fsSL https://raw.githubusercontent.com/aviorstudio/gdam/main/scripts/install_cli.sh | INSTALL_DIR="$RUNNER_TEMP/bin" sh - echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH" + uses: aviorstudio/gdam-actions/install@v0 - name: Publish to GDAM - env: - GDAM_SECRET_KEY: ${{ secrets.GDAM_SECRET_KEY }} - VERSION: ${{ steps.release.outputs.version }} - TAG: ${{ steps.release.outputs.tag }} - run: | - set -euo pipefail - if [ -z "${GDAM_SECRET_KEY:-}" ]; then - echo 'Missing required secret: GDAM_SECRET_KEY' >&2 - exit 1 - fi - repo_name="${GITHUB_REPOSITORY#*/}" - asset_name="@${GITHUB_REPOSITORY/\//_}.zip" - gdam publish "@aviorstudio/${repo_name}" "$VERSION" "$TAG" "$asset_name" + uses: aviorstudio/gdam-actions/publish@v0 + with: + version: ${{ steps.release.outputs.version }} + tag: ${{ steps.release.outputs.tag }} + secret-key: ${{ secrets.GDAM_SECRET_KEY }}