From 3a3f1e90a71a87d9d825858ff1b0880dafd804dd Mon Sep 17 00:00:00 2001 From: Rich Alimi Date: Tue, 5 Sep 2023 21:32:15 -0700 Subject: [PATCH] Publish prod release when creating release artifacts. Bump to version 0.0.28. (#173) * Publish prod release when creating release artifacts. * Fix path to downloaded release. * Bump to version 0.0.28 --- .github/workflows/release-beta.yml | 1 + .github/workflows/release.yml | 20 +++++--------------- manifest-beta.json | 2 +- manifest.json | 2 +- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 8d0ddc7..1426b03 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -34,6 +34,7 @@ jobs: # bazel-bin symlink may not exist files: | bazel-out/k8-fastbuild/bin/chrome-ssh-agent-beta.zip + bazel-out/k8-fastbuild/bin/chrome-ssh-agent.zip - name: Publish to Webstore uses: mnao305/chrome-extension-upload@v4.0.1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fea4f3..175b89b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,32 +8,22 @@ jobs: release: if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest - permissions: - # This is broad, but unfortunately it is required for creating - # releases. - contents: write steps: - uses: actions/checkout@v4 - - uses: bazelbuild/setup-bazelisk@v2 - name: Check Manifest run: | MANIFEST_VERSION=$(cat manifest.json | python3 -c "import sys, json; print(json.load(sys.stdin)['version'])") TAG_VERSION=${{ github.ref_name }} test "v${MANIFEST_VERSION}" = "${TAG_VERSION}" - - run: bazel build ... - - run: bazel test --test_output=errors ... - - name: Create Release - uses: softprops/action-gh-release@v1 + # Release artifacts were published with the beta. Fetch instead of rebuilding. + - uses: robinraju/release-downloader@v1.8 with: - generate_release_notes: true - fail_on_unmatched_files: true - # bazel-bin symlink may not exist - files: | - bazel-out/k8-fastbuild/bin/chrome-ssh-agent.zip + tag: ${{ github.ref_name }} + fileName: chrome-ssh-agent.zip - name: Publish to Webstore uses: mnao305/chrome-extension-upload@v4.0.1 with: - file-path: bazel-out/k8-fastbuild/bin/chrome-ssh-agent.zip + file-path: chrome-ssh-agent.zip extension-id: eechpbnaifiimgajnomdipfaamobdfha client-id: ${{ secrets.WEBSTORE_CLIENT_ID }} client-secret: ${{ secrets.WEBSTORE_CLIENT_SECRET }} diff --git a/manifest-beta.json b/manifest-beta.json index d02f046..9760496 100644 --- a/manifest-beta.json +++ b/manifest-beta.json @@ -1,6 +1,6 @@ { "name": "SSH Agent for Google Chrome™ (BETA)", - "version": "0.0.27", + "version": "0.0.28", "description": "Provides an SSH Agent implementation for Chrome's Secure Shell extension", "manifest_version": 3, "icons": { diff --git a/manifest.json b/manifest.json index 684b383..0061aac 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "SSH Agent for Google Chrome™", - "version": "0.0.27", + "version": "0.0.28", "description": "Provides an SSH Agent implementation for Chrome's Secure Shell extension", "manifest_version": 3, "icons": {