feat(lines): various lines #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: ["master"] | |
paths: ["cases.json", "lines.json", "soundtags.json", "scripts/package.py"] | |
permissions: | |
contents: write | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get Previous Tag | |
id: previoustag | |
uses: tdemin/[email protected] | |
with: | |
repo: https://github.com/glacier-modding/Hitman-l10n-Hashes | |
- name: Get New Tag | |
id: newtag | |
env: | |
curVer: ${{ steps.previoustag.outputs.tag }} | |
run: | | |
echo "tag=v$((${curVer#*v} + 1))" >> $GITHUB_OUTPUT | |
echo "numTag=$((${curVer#*v} + 1))" >> $GITHUB_OUTPUT | |
- name: Create Version JSON | |
run: echo "{\"version\":${{ steps.newtag.outputs.numTag }}}" > version.json | |
- name: Install Dependencies | |
run: pip install -r scripts/requirements.txt | |
- name: Package Hash Lists | |
run: python scripts/package.py ${{ steps.newtag.outputs.numTag }} | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: false | |
tag_name: ${{ steps.newtag.outputs.tag }} | |
name: ${{ steps.newtag.outputs.tag }} | |
files: | | |
hash_list.hmla | |
version.json | |
- name: Update README | |
run: python scripts/statistics.py | |
- name: Update Statistics | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: | | |
README.md | |
default_author: github_actions | |
message: "chore: update statistics" |