forked from joelshepherd/tabliss
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from the-wright-jamie/development
v1.2.0 to stage
- Loading branch information
Showing
20 changed files
with
973 additions
and
1,222 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Update Extension on Stores | ||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
jobs: | ||
build: | ||
name: Build ${{ matrix.build_target }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
build_target: | ||
- chromium | ||
- firefox | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
- run: npm ci | ||
- run: npm run build:${{ matrix.build_target }} | ||
env: | ||
UNSPLASH_API_KEY: ${{ secrets.UNSPLASH_API_KEY }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: tab-nine-${{ matrix.build_target }} | ||
path: dist/${{ matrix.build_target }} | ||
upload-chrome-store: | ||
needs: [build] | ||
name: Upload extension to Chrome Store | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: tab-nine-chromium | ||
- run: zip release.zip ./* -r | ||
- run: npm install -g chrome-webstore-upload-cli | ||
- run: chrome-webstore-upload upload --source release.zip --extension-id ${{ secrets.CHROME_EXTENSION_ID }} --client-id ${{ secrets.CI_GOOGLE_CLIENT_ID }} --client-secret ${{ secrets.CI_GOOGLE_CLIENT_SECRET }} --refresh-token ${{ secrets.CI_GOOGLE_REFRESH_TOKEN }} --auto-publish | ||
upload-firefox-store: | ||
needs: [build] | ||
name: Upload extension to Firefox Store | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: tab-nine-firefox | ||
- run: zip release.zip ./* -r; mv release.zip ../release.zip; rm -rf * | ||
- uses: actions/[email protected] | ||
- run: zip source.zip ./* -r; mv source.zip ../source.zip; rm -rf * | ||
- run: mv ../release.zip release.zip; mv ../source.zip source.zip | ||
- uses: yayuyokitano/[email protected] | ||
with: | ||
api_key: ${{ secrets.AMO_ISSUER }} | ||
api_secret: ${{ secrets.AMO_SECRET }} | ||
guid: "{${{ secrets.AMO_EXTENSION_ID }}}" | ||
xpi_path: release.zip | ||
src_path: source.zip |
Oops, something went wrong.