-
Notifications
You must be signed in to change notification settings - Fork 38
30 lines (28 loc) · 1.04 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Release
on:
# Manual trigger.
workflow_dispatch:
jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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}"
# Release artifacts were published with the beta. Fetch instead of rebuilding.
- uses: robinraju/[email protected]
with:
tag: ${{ github.ref_name }}
fileName: chrome-ssh-agent.zip
- name: Publish to Webstore
uses: mnao305/[email protected]
with:
file-path: chrome-ssh-agent.zip
extension-id: eechpbnaifiimgajnomdipfaamobdfha
client-id: ${{ secrets.WEBSTORE_CLIENT_ID }}
client-secret: ${{ secrets.WEBSTORE_CLIENT_SECRET }}
refresh-token: ${{ secrets.WEBSTORE_REFRESH_TOKEN }}