Skip to content

Commit

Permalink
Hard coding the Kindle lemmas dump file URL
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Aug 22, 2022
1 parent 5092b10 commit 721ea95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ jobs:
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
# Don't upload the zip file directly cuz GitHub will zip it again
name: worddumb-${{ github.sha }}
path: |
.
Expand Down
6 changes: 3 additions & 3 deletions build_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ else
fi

# Download the latest Kindle lemmas dump file
PROFICIENCY_VERSION=`cd Proficiency && git describe && cd ..`
PROFICIENCY_MAJOR_VERSION=`echo $PROFICIENCY_VERSION | cut -d . -f 1`
wget -P data -nv "https://github.com/xxyzz/Proficiency/releases/download/$PROFICIENCY_VERSION/kindle_lemmas_dump_$PROFICIENCY_MAJOR_VERSION"
# Hard coding the link cuz GitHub API has rate limit and
# actions/checkout can't fetch submodule's tag
wget -P data -nv "https://github.com/xxyzz/Proficiency/releases/download/v0.1.0/kindle_lemmas_dump_v0"

cp Proficiency/en/dump_kindle_lemmas.py ./
cp Proficiency/tst.py ./libs/
Expand Down

0 comments on commit 721ea95

Please sign in to comment.