Skip to content

release: v22

release: v22 #10

Workflow file for this run

name: Publish
on:
push:
tags:
- v**
jobs:
build:
name: Build & Publish
runs-on: ubuntu-22.04
steps:
- name: Install NodeJS
uses: actions/[email protected]
with:
node-version: '20.11.0'
- name: Checkout
uses: actions/[email protected]
- name: Create Package
run: |
cp manifest_chrome.json manifest.json
zip -r ezproxy-redirect-chrome-$GITHUB_REF_NAME.zip ./*
cp manifest_firefox.json manifest.json
zip -r ezproxy-redirect-firefox-$GITHUB_REF_NAME.zip ./*
- name: Upload to Chrome Web Store
run: |
npx [email protected] upload \
--source ezproxy-redirect-chrome-$GITHUB_REF_NAME.zip
env:
EXTENSION_ID: gfhnhcbpnnnlefhobdnmhenofhfnnfhi
CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }}
- name: Upload to Mozilla Add-Ons
run: npx [email protected] sign --use-submission-api --channel listed
env:
WEB_EXT_API_KEY: ${{ secrets.MOZILLA_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.MOZILLA_API_SECRET }}
- name: Upload artifacts
uses: actions/[email protected]
with:
name: ezproxy-redirect-${{ env.GITHUB_REF_NAME }}
path: ezproxy-redirect-*.zip
if-no-files-found: error
- name: Create release
uses: ncipollo/[email protected]
with:
artifactErrorsFailBuild: true
artifacts: ezproxy-redirect-*.zip
generateReleaseNotes: true
prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') || contains(github.ref, '-rc') || contains(github.ref, '-pre') }}