Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
metoule committed Feb 4, 2020
2 parents 30a27a9 + 2c3a464 commit 50443f3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set version ${{ github.event.release.name }}!
uses: microsoft/variable-substitution@v1
with:
files: 'manifest.json'
env:
version: ${{ github.event.release.name }}
- name: Create zip file
run: |
zip -u deezer_control_${{ github.event.release.name }}.zip LICENSE.txt
zip -u deezer_control_${{ github.event.release.name }}.zip manifest.json
zip -u deezer_control_${{ github.event.release.name }}.zip *.html
zip -ur deezer_control_${{ github.event.release.name }}.zip css
zip -ur deezer_control_${{ github.event.release.name }}.zip imgs
zip -ur deezer_control_${{ github.event.release.name }}.zip _locales
zip -ur deezer_control_${{ github.event.release.name }}.zip scripts
echo Zip created!
- name: Upload Chrome Extension Webstore artifact
uses: actions/upload-artifact@v1
with:
name: deezer_control_${{ github.event.release.name }}
path: deezer_control_${{ github.event.release.name }}.zip
- name: Chrome Addon Action
uses: trmcnvn/chrome-addon@v2
with:
extension: 'cmkmelneeccijablfclenghkcbopdemg'
zip: deezer_control_${{ github.event.release.name }}.zip
client-id: ${{ secrets.GOOGLE_CLIENT_ID }}
client-secret: ${{ secrets.GOOGLE_CLIENT_SECRET }}
refresh-token: ${{ secrets.GOOGLE_REFRESH_TOKEN }}

0 comments on commit 50443f3

Please sign in to comment.