Skip to content

Commit

Permalink
upload release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
bminixhofer committed Jan 4, 2021
1 parent 6817edd commit 6c68424
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ jobs:
with:
name: python-wheel
path: python-wheel
- uses: actions/download-artifact@v2
with:
name: binaries
path: storage
- run: |
gzip storage/en_tokenizer.bin
gzip storage/en_rules.bin
gzip storage/de_tokenizer.bin
gzip storage/de_rules.bin
- name: Update version
run: |
bash scripts/set_version.sh ${{ github.event.release.tag_name }}
Expand All @@ -153,4 +162,10 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: v${{ github.event.release.tag_name }}
branch: master
branch: master
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./storage/"]'
2 changes: 1 addition & 1 deletion bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn get_resource(code: &str, name: &str) -> PyResult<impl Read> {

// ... otherwise, request the data from the URL ...
let bytes = reqwest::blocking::get(&format!(
"https://github.com/bminixhofer/nlprule/raw/{}/storage/{}/{}",
"https://github.com/bminixhofer/nlprule/releases/download/{}/{}_{}",
env!("CARGO_PKG_VERSION"),
code,
name
Expand Down

0 comments on commit 6c68424

Please sign in to comment.