-
-
Notifications
You must be signed in to change notification settings - Fork 29
46 lines (40 loc) · 1.16 KB
/
create-plugin-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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Create Plugin Release"
on:
push:
tags:
- "v*"
jobs:
pre-release:
name: "Pre Release Extension"
runs-on: "ubuntu-latest"
environment:
name: development
url: "https://github.com/tattle-made/Uli/releases"
steps:
- name: "Checkout Development Branch"
uses: actions/checkout@v3
with:
ref: main
- name: Get commit SHA
shell: bash
run: |
echo "setting variables"
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: "Build and Test"
run: |
cd browser-extension/plugin
ls
pwd
npm install
npm run build
zip extension-chrome.zip ./dist/ -r
rm -rf dist/
npm run build:firefox
zip extension-firefox.zip ./dist/ -r
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: "Development Build : ${{ github.event.inputs.version }}"
files: |
browser-extension/plugin/extension-chrome.zip
browser-extension/plugin/extension-firefox.zip