Skip to content

Commit

Permalink
Publish prod release when creating release artifacts. Bump to version…
Browse files Browse the repository at this point in the history
… 0.0.28. (#173)

* Publish prod release when creating release artifacts.

* Fix path to downloaded release.

* Bump to version 0.0.28
  • Loading branch information
ralimi committed Sep 6, 2023
1 parent ae61463 commit 3a3f1e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 5 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 3a3f1e9

Please sign in to comment.