-
-
Notifications
You must be signed in to change notification settings - Fork 66
69 lines (57 loc) · 2.26 KB
/
Copy pathAutorelease.yml
File metadata and controls
69 lines (57 loc) · 2.26 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Manual PHEx autorelease
name: Autorelease PHEx
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
tag:
# Friendly description to be shown in the UI instead of 'tag'
description: 'Tagname of the git tag you are making a release of'
# Input has to be provided for the workflow to run
required: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "greet"
greet:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: GitHub Release
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ github.event.inputs.tag }}"
prerelease: false
title: "PHEx ${{ github.event.inputs.tag }}"
files: |
./PHEx/build/extension.zip
./PHEx/build/extension.xpi
./PHEx/build/extension.crx
- name: Chrome Web Store Release
uses: mobilefirstllc/cws-publish@latest
with:
action: 'upload' # one of: upload, publish, testers
client_id: ${{ secrets.CLIENT }}
client_secret: ${{ secrets.SECRET }}
refresh_token: ${{ secrets.TOKEN }}
extension_id: 'nmipcbdicnmjoifanpdcjdmifeioglkm'
zip_file: './PHEx/build/extension.zip'
- name: Edge Addons Store Release
uses: wdzeng/edge-addon@v1
with:
product-id: '5f5dd37a-2075-4f20-baa7-1c6b611b8efc'
zip-path: './PHEx/build/extension.zip'
client-id: ${{ secrets.EDGE_CLIENT_ID }}
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
- name: Firefox Addons Store Release
uses: wdzeng/firefox-addon@v1
with:
addon-guid: ''
xpi-path: './PHEx/build/extension.xpi'
self-hosted: false
jwt-issuer: ${{ secrets.FIREFOX_JWT_ISSUER }}
jwt-secret: ${{ secrets.FIREFOX_JWT_SECRET }}