From b67bc9eb7a09e0e5b39a76f71b909a1c20f98e1c Mon Sep 17 00:00:00 2001 From: Rich Alimi Date: Sat, 28 Jan 2023 18:22:38 -0800 Subject: [PATCH] Release-process (#91) * Use full path, since bazel-bin may not exist. * Validate manifest version during release --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 887a9acf..f0c158ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,11 @@ jobs: steps: - uses: actions/checkout@v3 - 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 "${MANIFEST_VERSION}" = "${TAG_VERSION}" - run: bazel build ... - run: bazel test --test_output=errors ... - name: Create Release @@ -26,8 +31,9 @@ jobs: with: generate_release_notes: true fail_on_unmatched_files: true + # bazel-bin symlink may not exist files: | - bazel-bin/chrome-ssh-agent.zip + bazel-out/k8-fastbuild/bin/chrome-ssh-agent.zip - name: Publish to Webstore uses: mnao305/chrome-extension-upload@v4.0.1 with: