Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
Add GitHub action to create release and publish extension
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdaze committed Sep 7, 2020
1 parent 7cd6943 commit d6ec98b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Create Release and Publish

on:
push:
tags:
- 'v*'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.2
- name: Build Extension
uses: TheDoctor0/zip-release@0.4.1
with:
filename: 'release.zip'
exclusions: '*.git*'
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- name: Attach Extension to Release
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release.zip
asset_name: bulma-release.zip
asset_content_type: application/zip
- name: Publish Extension
uses: trmcnvn/chrome-addon@v2
with:
extension: melacinmggphfalalkhedbcjgdpnohfl
zip: release.zip
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Search for Bulma",
"version": "1.1",
"version": "1.1.1",
"description": "Unofficial Chrome extension to search Bulma documentation",
"homepage_url": "https://github.com/patrickdaze/bulma-search-chrome",
"icons": {
Expand Down

0 comments on commit d6ec98b

Please sign in to comment.