Skip to content

chore: Update README.md with Chrome Web Store installation link #14

chore: Update README.md with Chrome Web Store installation link

chore: Update README.md with Chrome Web Store installation link #14

Workflow file for this run

name: Build and Release Extension
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
with:
version: 8
run_install: false
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
id: build
env:
VITE_TMDB_API_KEY: ${{ secrets.VITE_TMDB_API_KEY }}
run: |
pnpm run build
cd dist; zip -r ../spoiler-shield-ai.zip *;cd ..
ls
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
- name: Create Release
uses: ncipollo/release-action@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref }}
with:
allowUpdates: true
draft: false
prerelease: false
- name: Upload zip file
id: upload_zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./spoiler-shield-ai.zip
asset_name: spoiler-shield-ai-${{ steps.build.outputs.tag_name }}.zip
asset_content_type: application/zip