Skip to content

Commit

Permalink
Add new workflow for building and releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
ipenywis committed Mar 11, 2022
1 parent aba658c commit 2df4392
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This is a basic workflow to help you get started with Actions

name: Build & Release

# Controls when the workflow will run
on:
push:
tags:
- "v*.*.*"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# 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 "build"
build:
# 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: Checkout
uses: actions/checkout@v2
# pack zip and read manifest, can be reused in the following steps

- name: "Zipping"
id: packExtensionDir
uses: cardinalby/webext-buildtools-pack-extension-dir-action@v1
with:
extensionDir: "public"
zipFilePath: "dist/extension.zip"

- name: "Building CRX"
uses: cardinalby/webext-buildtools-chrome-crx-action@v2
with:
# zip file made at the packExtensionDir step
zipFilePath: "dist/extension.zip"
crxFilePath: "dist/extension.crx"
privateKey: ${{ secrets.CHROME_CRX_PRIVATE_KEY }}

# - name: Bump version and push tag
# id: tag_version
# uses: mathieudutour/github-tag-action@v6.0
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "dist/extension.crx"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
npm-debug.log*

*.zip
build*
build
Binary file added build.crx
Binary file not shown.
28 changes: 28 additions & 0 deletions build.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDQ0ouwT2QxMim8
ombe43xQmV/pArvbBwDoBDJncbID/Wt5XSJexSlCcPR8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