Publish on Chrome #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish on Chrome" | |
on: workflow_dispatch | |
jobs: | |
chrome-publish: | |
name: "Pre Release Extension" | |
runs-on: "ubuntu-latest" | |
environment: | |
name: main | |
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 "::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 | |
- name: "Upload to chrome" | |
uses: Klemensas/[email protected] | |
with: | |
refresh-token: ${{ secrets.CHROME_STORE_REFRESH_TOKEN }} | |
client-id: ${{ secrets.CHROME_STORE_CLIENT_ID }} | |
client-secret: ${{ secrets.CHROME_STORE_CLIENT_SECRET }} | |
file-name: "./browser-extension/plugin/extension.zip" | |
app-id: "hbfmbflgailjeobfkhpdipcdmpclinki" | |
publish: true |