Skip to content

manifest v3 migration #28

manifest v3 migration

manifest v3 migration #28

Workflow file for this run

name: CI Build
on:
pull_request:
push:
branches:
- 'master'
- 'develop' # gitflow mainly on hosted runner
workflow_dispatch:
inputs:
ref:
description: git tag reference to build
required: true
type: string
workflow_call:
inputs:
ref:
description: git tag reference to build
required: true
type: string
jobs:
deploy:
permissions:
checks: write
contents: read
id-token: write
packages: write
pull-requests: write
statuses: write
runs-on:
- ${{ github.repository_owner != github.actor && 'ubuntu-latest' || 'self-hosted' }}
steps:
- name: Checkout Commit
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack prepare pnpm@next-8 --activate
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build:chrome
- name: Zip the packages
run: |
pushd dist
zip -r chrome.zip chrome
popd
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.head_ref }}
release_name: Release ${{ github.head_ref }}
draft: true
prerelease: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/chrome.zip
asset_name: chrome.zip
asset_content_type: application/zip