Skip to content

Commit

Permalink
feat(actions): enable tagged plugin release
Browse files Browse the repository at this point in the history
  • Loading branch information
dennyabrain committed Jul 25, 2022
1 parent b6ffe9a commit aaac481
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/create-plugin-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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/OGBV/releases"

steps:
- name: "Checkout Development Branch"
uses: actions/checkout@v2
with:
ref: main

- name: Get commit SHA
shell: bash
run: |
echo "setting variables"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: "Build and Test"
run: |
cd browser-extension/plugin
ls
pwd
npm install
npm run build
zip extension.zip ./dist/ -r
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GH_RELEASE_TOKEN }}"
title: "Development Build : ${{ github.event.inputs.version }}"
files: |
browser-extension/plugin/extension.zip

0 comments on commit aaac481

Please sign in to comment.