@@ -30,46 +30,10 @@ jobs:
3030 pip install poetry
3131
3232 - name : Zip corpus
33- run : zip -r corpus .zip corpus
33+ run : zip -r records .zip data
3434 - name : Upload binaries to release
3535 uses : svenstaro/upload-release-action@v2
3636 with :
3737 repo_token : ${{ secrets.GITHUB_TOKEN }}
38- file : corpus.zip
39- tag : ${{ github.ref }}
40-
41- - name : Estimate current accuracy and generate a new plot
42- run : |
43- PYTHONPATH="$PYTHONPATH:." python scripts/mapping_accuracy_estimate.py
44- PYTHONPATH="$PYTHONPATH:." python scripts/accuracy_version_plot.py -v ${{ github.ref }}
45- - name : Build and publish module
46- env : # authentication
47- PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
48- run : |
49- VERSION=$(echo ${{ github.ref }} | cut -d "v" -f 2 | xargs)
50- echo "Change module version to $VERSION"
51- poetry version $VERSION
52- poetry build
53- poetry publish -u "__token__" -p $PYPI_TOKEN
54- - name : Update Readme
55- run : |
56- PYTHONPATH="$PYTHONPATH:." python scripts/stats-dashboard/generate-markdown.py -v ${{ github.ref }}
57- - name : Commit files
58- run : |
59- git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
60- git config --local user.name "github-actions[bot]"
61- git add input/accuracy/difference.csv
62- git add input/accuracy/version_plot.png
63- git commit -m "docs: generate a new accuracy plot"
64- git add README.md
65- git add scripts/stats-dashboard/descr_stats_version.csv
66- git add scripts/stats-dashboard/
67- git commit -m "docs: update README"
68- git add dist
69- git add pyproject.toml
70- git commit -m "chore: build module"
71- - name : Push changes
72- uses : ad-m/github-push-action@master
73- with :
74- github_token : ${{ secrets.GITHUB_TOKEN }}
75- branch : dev
38+ file : records.zip
39+ tag : ${{ github.ref }}
0 commit comments