Skip to content

Commit c5330ec

Browse files
Added build script and GitHub workflow
1 parent 443c4ac commit c5330ec

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Package add-on
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
zip_job:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
14+
- name: Run build script
15+
run: ./build.sh

build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
temp_dir=$(mktemp -d)
4+
cp *.py config.json LICENSE "$temp_dir"
5+
(cd "$temp_dir" && zip -r "$OLDPWD/MoreOverviewStats.ankiaddon" .)
6+
rm -rf "$temp_dir"

0 commit comments

Comments
 (0)