use js plugin system #17
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 | |
on: push | |
permissions: write-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install jq | |
run: sudo apt-get install -y jq | |
- id: getname | |
run: | | |
echo "NAME=$(cat info.json | jq '.id' | tr -d '"')" >> "$GITHUB_ENV" | |
echo "ICON=$(cat info.json | jq '.icon' | tr -d '"')" >> "$GITHUB_ENV" | |
- name: Download PaddleOCR-json | |
run: | | |
curl https://github.com/hiroi-sora/PaddleOCR-json/releases/download/v1.3.1/PaddleOCR-json_v.1.3.1.7z -o PaddleOCR-json_v.1.3.1.7z" | |
mkdir PPOCR | |
- name: extract-7z-action | |
uses: DuckSoft/extract-7z-action@v1.0 | |
with: | |
pathSource: PaddleOCR-json_v.1.3.1.7z | |
pathTarget: PPOCR | |
- uses: vimtor/action-zip@v1 | |
with: | |
files: info.json ${{ env.ICON }} main.js PPOCR | |
dest: ${{ env.NAME }}.potext | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.target }} | |
path: "*.potext" | |
if-no-files-found: error | |
- name: Upload Release | |
if: startsWith(github.ref, 'refs/tags') | |
uses: softprops/action-gh-release@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: "*.potext" |