v3.0.1 #3
Workflow file for this run
This file contains hidden or 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: Build and publish | |
| on: | |
| release: | |
| types: [ created ] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - run: git archive --format=zip --output=source.zip HEAD | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm run pack | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: archives | |
| path: dist/*.zip | |
| - name: Get zip path | |
| run: | | |
| echo "ZIP_CHROME=dist/$(ls dist | grep chrome)" >> $GITHUB_ENV | |
| echo "ZIP_FF=dist/$(ls dist | grep firefox)" >> $GITHUB_ENV | |
| - name: Upload to Chrome Web Store | |
| uses: mobilefirstllc/cws-publish@latest | |
| with: | |
| action: 'upload' | |
| client_id: ${{ secrets.CHROME_ID }} | |
| client_secret: ${{ secrets.CHROME_SECRET }} | |
| refresh_token: ${{ secrets.CHROME_REFRESH_TOKEN }} | |
| extension_id: 'jepfhfjlkgobooomdgpcjikalfpcldmm' | |
| zip_file: ${{ env.ZIP_CHROME }} | |
| - name: Upload to Firefox Add-ons | |
| uses: yayuyokitano/firefox-addon@v0.0.6-alpha | |
| with: | |
| api_key: ${{ secrets.FF_ISSUER }} | |
| api_secret: ${{ secrets.FF_SECRET }} | |
| guid: '{7c45e7c9-80ff-4f7f-93b3-da64baf0c6dd}' | |
| xpi_path: ${{ env.ZIP_FF }} | |
| src_path: source.zip |