|
8 | 8 | release: |
9 | 9 | if: startsWith(github.ref, 'refs/tags/v') |
10 | 10 | runs-on: ubuntu-latest |
11 | | - permissions: |
12 | | - # This is broad, but unfortunately it is required for creating |
13 | | - # releases. |
14 | | - contents: write |
15 | 11 | steps: |
16 | 12 | - uses: actions/checkout@v4 |
17 | | - - uses: bazelbuild/setup-bazelisk@v2 |
18 | 13 | - name: Check Manifest |
19 | 14 | run: | |
20 | 15 | MANIFEST_VERSION=$(cat manifest.json | python3 -c "import sys, json; print(json.load(sys.stdin)['version'])") |
21 | 16 | TAG_VERSION=${{ github.ref_name }} |
22 | 17 | test "v${MANIFEST_VERSION}" = "${TAG_VERSION}" |
23 | | - - run: bazel build ... |
24 | | - - run: bazel test --test_output=errors ... |
25 | | - - name: Create Release |
26 | | - uses: softprops/action-gh-release@v1 |
| 18 | + # Release artifacts were published with the beta. Fetch instead of rebuilding. |
| 19 | + - uses: robinraju/release-downloader@v1.8 |
27 | 20 | with: |
28 | | - generate_release_notes: true |
29 | | - fail_on_unmatched_files: true |
30 | | - # bazel-bin symlink may not exist |
31 | | - files: | |
32 | | - bazel-out/k8-fastbuild/bin/chrome-ssh-agent.zip |
| 21 | + tag: ${{ github.ref_name }} |
| 22 | + fileName: chrome-ssh-agent.zip |
33 | 23 | - name: Publish to Webstore |
34 | 24 | uses: mnao305/chrome-extension-upload@v4.0.1 |
35 | 25 | with: |
36 | | - file-path: bazel-out/k8-fastbuild/bin/chrome-ssh-agent.zip |
| 26 | + file-path: chrome-ssh-agent.zip |
37 | 27 | extension-id: eechpbnaifiimgajnomdipfaamobdfha |
38 | 28 | client-id: ${{ secrets.WEBSTORE_CLIENT_ID }} |
39 | 29 | client-secret: ${{ secrets.WEBSTORE_CLIENT_SECRET }} |
|
0 commit comments