Skip to content

Commit

Permalink
chore: fix release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ninpnin committed Mar 26, 2024
1 parent 370e2d6 commit 59bd911
Showing 1 changed file with 3 additions and 39 deletions.
42 changes: 3 additions & 39 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,46 +30,10 @@ jobs:
pip install poetry
- name: Zip corpus
run: zip -r corpus.zip corpus
run: zip -r records.zip data
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: corpus.zip
tag: ${{ github.ref }}

- name: Estimate current accuracy and generate a new plot
run: |
PYTHONPATH="$PYTHONPATH:." python scripts/mapping_accuracy_estimate.py
PYTHONPATH="$PYTHONPATH:." python scripts/accuracy_version_plot.py -v ${{ github.ref }}
- name: Build and publish module
env: # authentication
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
VERSION=$(echo ${{ github.ref }} | cut -d "v" -f 2 | xargs)
echo "Change module version to $VERSION"
poetry version $VERSION
poetry build
poetry publish -u "__token__" -p $PYPI_TOKEN
- name: Update Readme
run: |
PYTHONPATH="$PYTHONPATH:." python scripts/stats-dashboard/generate-markdown.py -v ${{ github.ref }}
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add input/accuracy/difference.csv
git add input/accuracy/version_plot.png
git commit -m "docs: generate a new accuracy plot"
git add README.md
git add scripts/stats-dashboard/descr_stats_version.csv
git add scripts/stats-dashboard/
git commit -m "docs: update README"
git add dist
git add pyproject.toml
git commit -m "chore: build module"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: dev
file: records.zip
tag: ${{ github.ref }}

0 comments on commit 59bd911

Please sign in to comment.