Skip to content

Commit 1959adb

Browse files
committed
Use single release workflow script for listed and unlisted releases
- Add release workflow badge to Readme. Use standard badge markdown format
1 parent 476f912 commit 1959adb

File tree

3 files changed

+17
-35
lines changed

3 files changed

+17
-35
lines changed

.github/workflows/release.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ on:
33
push:
44
tags:
55
- v[0-9]+.[0-9]+.[0-9]+
6+
workflow_dispatch:
7+
inputs:
8+
channel:
9+
type: choice
10+
description: 'Channel Type'
11+
required: true
12+
default: 'unlisted'
13+
options:
14+
- listed
15+
- unlisted
16+
617
jobs:
718
sign:
819
name: "Release"
@@ -11,19 +22,19 @@ jobs:
1122
- name: "Checkout"
1223
uses: actions/checkout@v1
1324

14-
- name: "web-ext build"
25+
- name: "Build Extension"
1526
id: web-ext-build
1627
uses: kewisch/action-web-ext@v1
1728
with:
1829
cmd: build
1930
source: src
2031

21-
- name: "web-ext sign"
32+
- name: "Publish Extension"
2233
id: web-ext-sign
2334
uses: kewisch/action-web-ext@v1
2435
with:
2536
cmd: sign
2637
source: ${{ steps.web-ext-build.outputs.target }}
27-
channel: listed
38+
channel: ${{ inputs.channel || 'unlisted' }}
2839
apiKey: ${{ secrets.AMO_SIGN_KEY }}
2940
apiSecret: ${{ secrets.AMO_SIGN_SECRET }}

.github/workflows/release_dev.yml

-29
This file was deleted.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<img align="right" width="75" height="75" src="./src/icons/deep-dive-96.png">
22

33
# Deep Dive
4+
[![build](https://github.com/debanjum/deep-dive/actions/workflows/build.yml/badge.svg)](https://github.com/debanjum/deep-dive/actions/workflows/build.yml)
5+
[![release](https://github.com/debanjum/deep-dive/actions/workflows/release.yml/badge.svg)](https://github.com/debanjum/deep-dive/actions/workflows/release.yml)
46

5-
<a href="https://github.com/debanjum/deep-dive/actions"><img src="https://github.com/debanjum/deep-dive/workflows/Build/badge.svg"></a>
6-
7-
A web extension to deep link to any text on the web.
7+
*A web extension to deep link to any text on the web.*
88

99
## Install
1010
- [Firefox Extension](https://addons.mozilla.org/en-US/firefox/addon/deep-dive/)

0 commit comments

Comments
 (0)