Optimize pipeline #5
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: Build and Publish Firefox Extension | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: "20" | |
- name: Create extension zip | |
run: zip -r injectooor.zip * -x .git\* -x .github\* | |
shell: bash | |
- name: Publish to AMO | |
uses: cmancone/[email protected] | |
with: | |
api_key: ${{ secrets.AMO_API_KEY }} | |
api_secret: ${{ secrets.AMO_API_SECRET }} | |
source: injectooor.zip | |
id: 531480d4-0398-499e-bdfc-79e7d6cf0055 |