chore: Update README.md with Chrome Web Store installation link #14
Workflow file for this run
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 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 |