Skip to content

fix: add public key for deterministic id #5

fix: add public key for deterministic id

fix: add public key for deterministic id #5

name: Release Chrome Extension
on:
push:
branches:
- main
paths:
- 'chrome-extension/**'
workflow_dispatch:
jobs:
build_and_release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Zip Chrome Extension
run: |
cd chrome-extension
zip -r ../chrome-extension.zip .
- name: Install jq
run: sudo apt-get install -y jq
- name: Get version from manifest
id: get_version
run: echo "VERSION=$(jq -r .version chrome-extension/manifest.json)" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: 'v${{ steps.get_version.outputs.VERSION }}-${{ github.run_number }}'
name: 'StealthByte v${{ steps.get_version.outputs.VERSION }}'
draft: false
prerelease: false
artifacts: 'chrome-extension.zip'
token: ${{ secrets.GITHUB_TOKEN }}
commit: ${{ github.sha }}